diff options
Diffstat (limited to 'client/src/app/+admin/follows/following-add/following-add.component.html')
-rw-r--r-- | client/src/app/+admin/follows/following-add/following-add.component.html | 53 |
1 files changed, 24 insertions, 29 deletions
diff --git a/client/src/app/+admin/follows/following-add/following-add.component.html b/client/src/app/+admin/follows/following-add/following-add.component.html index 8e7dddc11..65c1eda0c 100644 --- a/client/src/app/+admin/follows/following-add/following-add.component.html +++ b/client/src/app/+admin/follows/following-add/following-add.component.html | |||
@@ -1,35 +1,30 @@ | |||
1 | <div class="row"> | 1 | <h3>Add following</h3> |
2 | <div class="content-padding"> | ||
3 | 2 | ||
4 | <h3>Add following</h3> | 3 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
5 | 4 | ||
6 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | 5 | <form (ngSubmit)="addFollowing()" [formGroup]="form"> |
6 | <div class="form-group" *ngFor="let host of hosts; let id = index; trackBy:customTrackBy"> | ||
7 | <label [for]="'host-' + id">Host (so without "http://")</label> | ||
7 | 8 | ||
8 | <form (ngSubmit)="addFollowing()" [formGroup]="form"> | 9 | <div class="input-group"> |
9 | <div class="form-group" *ngFor="let host of hosts; let id = index; trackBy:customTrackBy"> | 10 | <input |
10 | <label [for]="'host-' + id">Host (so without "http://")</label> | 11 | type="text" class="form-control" placeholder="example.com" |
12 | [id]="'host-' + id" [formControlName]="'host-' + id" | ||
13 | /> | ||
14 | <span class="input-group-btn"> | ||
15 | <button *ngIf="displayAddField(id)" (click)="addField()" class="btn btn-default" type="button">+</button> | ||
16 | <button *ngIf="displayRemoveField(id)" (click)="removeField(id)" class="btn btn-default" type="button">-</button> | ||
17 | </span> | ||
18 | </div> | ||
11 | 19 | ||
12 | <div class="input-group"> | 20 | <div [hidden]="form.controls['host-' + id].valid || form.controls['host-' + id].pristine" class="alert alert-warning"> |
13 | <input | 21 | It should be a valid host. |
14 | type="text" class="form-control" placeholder="example.com" | 22 | </div> |
15 | [id]="'host-' + id" [formControlName]="'host-' + id" | 23 | </div> |
16 | /> | ||
17 | <span class="input-group-btn"> | ||
18 | <button *ngIf="displayAddField(id)" (click)="addField()" class="btn btn-default" type="button">+</button> | ||
19 | <button *ngIf="displayRemoveField(id)" (click)="removeField(id)" class="btn btn-default" type="button">-</button> | ||
20 | </span> | ||
21 | </div> | ||
22 | |||
23 | <div [hidden]="form.controls['host-' + id].valid || form.controls['host-' + id].pristine" class="alert alert-warning"> | ||
24 | It should be a valid host. | ||
25 | </div> | ||
26 | </div> | ||
27 | |||
28 | <div *ngIf="canMakeFriends() === false" class="alert alert-warning"> | ||
29 | It seems that you are not on a HTTPS server. Your webserver need to have TLS activated in order to follow servers. | ||
30 | </div> | ||
31 | 24 | ||
32 | <input type="submit" value="Add following" class="btn btn-default" [disabled]="!isFormValid()"> | 25 | <div *ngIf="canMakeFriends() === false" class="alert alert-warning"> |
33 | </form> | 26 | It seems that you are not on a HTTPS server. Your webserver need to have TLS activated in order to follow servers. |
34 | </div> | 27 | </div> |
35 | </div> | 28 | |
29 | <input type="submit" value="Add following" class="btn btn-default" [disabled]="!isFormValid()"> | ||
30 | </form> | ||