aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/follows/following-list/follow-modal.component.html
blob: d0761b71862ed22ad27216669af7fd758413e079 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<ng-template #modal>
  <div class="modal-header">
    <h4 i18n class="modal-title">Follow</h4>

    <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
  </div>

  <div class="modal-body">
    <form novalidate [formGroup]="form" (ngSubmit)="submit()">
      <div class="form-group">
        <label i18n for="hostsOrHandles">1 host (without "http://"), account handle or channel handle per line</label>

        <textarea
          [placeholder]="placeholder" formControlName="hostsOrHandles" type="text" id="hostsOrHandles" name="hostsOrHandles"
          class="form-control" [ngClass]="{ 'input-error': formErrors['hostsOrHandles'] }" ngbAutofocus
        ></textarea>

        <div *ngIf="formErrors.hostsOrHandles" class="form-error">
          {{ formErrors.hostsOrHandles }}

          <div *ngIf="form.controls['hostsOrHandles'].errors.validHostsOrHandles">
            {{ form.controls['hostsOrHandles'].errors.validHostsOrHandles.value }}
          </div>
        </div>
      </div>

      <div i18n *ngIf="httpEnabled() === false"  class="alert alert-warning">
        It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers.
      </div>

      <div class="form-group inputs">
        <input
          type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
          (click)="hide()" (key.enter)="hide()"
        >

        <input type="submit" i18n-value value="Follow" class="peertube-button orange-button" [disabled]="!form.valid" />
      </div>
    </form>
  </div>

</ng-template>