aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal/video-caption-edit-modal.component.html
blob: be6f676c24fc8bab53ba8a148ea198f10be78c2b (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
<ng-template #modal>
  <ng-container [formGroup]="form">

    <div class="modal-header">
      <h4 i18n class="modal-title">Edit caption</h4>
      <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
    </div>

    <div class="modal-body">
      <label i18n for="captionFileContent">Caption</label>
      <textarea
        id="captionFileContent"
        formControlName="captionFileContent"
        class="form-control caption-textarea"
        [ngClass]="{ 'input-error': formErrors['captionFileContent'] }"
      >
      </textarea>

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

    <div class="modal-footer inputs">
      <input
        type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
        (click)="cancel()" (key.enter)="cancel()"
      >

      <input
        type="submit" i18n-value value="Edit this caption" class="peertube-button orange-button"
        [disabled]="!form.valid" (click)="updateCaption()"
      >
    </div>
  </ng-container>
</ng-template>