]>
Commit | Line | Data |
---|---|---|
04e0fc48 | 1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
e105c19c | 2 | |
e600e1fe C |
3 | <form (ngSubmit)="addFollowing()"> |
4 | <div class="form-group"> | |
5 | <label for="hosts">1 host (without "http://") per line</label> | |
9e8aa10d | 6 | |
e600e1fe C |
7 | <textarea |
8 | type="text" class="form-control" placeholder="example.com" id="hosts" name="hosts" | |
9 | [(ngModel)]="hostsString" (ngModelChange)="onHostsChanged()" [ngClass]="{ 'input-error': hostsError }" | |
10 | ></textarea> | |
9e8aa10d | 11 | |
e600e1fe C |
12 | <div *ngIf="hostsError" class="form-error"> |
13 | {{ hostsError }} | |
04e0fc48 C |
14 | </div> |
15 | </div> | |
897ec54d | 16 | |
e600e1fe C |
17 | <div *ngIf="httpEnabled() === false" class="alert alert-warning"> |
18 | It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers. | |
897ec54d | 19 | </div> |
04e0fc48 | 20 | |
e600e1fe | 21 | <input type="submit" value="Add following" [disabled]="hostsError || !hostsString" class="btn btn-default"> |
04e0fc48 | 22 | </form> |