]>
Commit | Line | Data |
---|---|---|
897ec54d C |
1 | <div class="row"> |
2 | <div class="content-padding"> | |
e105c19c | 3 | |
51548b31 | 4 | <h3>Add following</h3> |
e105c19c | 5 | |
897ec54d | 6 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
9e8aa10d | 7 | |
51548b31 | 8 | <form (ngSubmit)="addFollowing()" [formGroup]="form"> |
897ec54d | 9 | <div class="form-group" *ngFor="let host of hosts; let id = index; trackBy:customTrackBy"> |
4b5dc9f1 | 10 | <label [for]="'host-' + id">Host (so without "http://")</label> |
9e8aa10d | 11 | |
897ec54d C |
12 | <div class="input-group"> |
13 | <input | |
4b5dc9f1 | 14 | type="text" class="form-control" placeholder="example.com" |
897ec54d C |
15 | [id]="'host-' + id" [formControlName]="'host-' + id" |
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> | |
e105c19c | 22 | |
897ec54d C |
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> | |
8735451a | 27 | |
897ec54d | 28 | <div *ngIf="canMakeFriends() === false" class="alert alert-warning"> |
60862425 | 29 | It seems that you are not on a HTTPS server. Your webserver need to have TLS activated in order to follow servers. |
897ec54d C |
30 | </div> |
31 | ||
51548b31 | 32 | <input type="submit" value="Add following" class="btn btn-default" [disabled]="!isFormValid()"> |
897ec54d C |
33 | </form> |
34 | </div> | |
35 | </div> |