]>
Commit | Line | Data |
---|---|---|
1 | <ng-template #modal> | |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Follow</h4> | |
4 | ||
5 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | |
6 | </div> | |
7 | ||
8 | <div class="modal-body"> | |
9 | <form novalidate [formGroup]="form" (ngSubmit)="submit()"> | |
10 | <div class="form-group"> | |
11 | <label i18n for="hostsOrHandles">1 host (without "http://"), account handle or channel handle per line</label> | |
12 | ||
13 | <textarea | |
14 | [placeholder]="placeholder" formControlName="hostsOrHandles" type="text" id="hostsOrHandles" name="hostsOrHandles" | |
15 | class="form-control" [ngClass]="{ 'input-error': formErrors['hostsOrHandles'] }" ngbAutofocus | |
16 | ></textarea> | |
17 | ||
18 | <div *ngIf="formErrors.hostsOrHandles" class="form-error"> | |
19 | {{ formErrors.hostsOrHandles }} | |
20 | ||
21 | <div *ngIf="form.controls['hostsOrHandles'].errors.validHostsOrHandles"> | |
22 | {{ form.controls['hostsOrHandles'].errors.validHostsOrHandles.value }} | |
23 | </div> | |
24 | </div> | |
25 | </div> | |
26 | ||
27 | <div i18n *ngIf="httpEnabled() === false" class="alert alert-warning"> | |
28 | It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers. | |
29 | </div> | |
30 | ||
31 | <div class="form-group inputs"> | |
32 | <input | |
33 | type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button" | |
34 | (click)="hide()" (key.enter)="hide()" | |
35 | > | |
36 | ||
37 | <input type="submit" i18n-value value="Follow" class="peertube-button orange-button" [disabled]="!form.valid" /> | |
38 | </div> | |
39 | </form> | |
40 | </div> | |
41 | ||
42 | </ng-template> |