aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal-content/video-caption-edit-modal-content.component.html
blob: e8079c74edbb2b95cac2f5c952555a6d902393e8 (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
<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
    >
    </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>