]>
Commit | Line | Data |
---|---|---|
57d74ec8 | 1 | <ng-template #modal> |
2 | <ng-container [formGroup]="form"> | |
3 | ||
4 | <div class="modal-header"> | |
5 | <h4 i18n class="modal-title">Edit caption</h4> | |
6 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | |
7 | </div> | |
8 | ||
9 | <div class="modal-body"> | |
10 | <label i18n for="captionFileContent">Caption</label> | |
11 | <textarea | |
12 | id="captionFileContent" | |
13 | formControlName="captionFileContent" | |
14 | class="form-control caption-textarea" | |
15 | [ngClass]="{ 'input-error': formErrors['captionFileContent'] }" | |
16 | > | |
17 | </textarea> | |
18 | ||
19 | <div *ngIf="formErrors.captionFileContent" class="form-error"> | |
70a8e50a | 20 | {{ formErrors.captionFileContent }} |
57d74ec8 | 21 | </div> |
22 | </div> | |
23 | ||
24 | <div class="modal-footer inputs"> | |
25 | <input | |
26 | type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button" | |
27 | (click)="cancel()" (key.enter)="cancel()" | |
28 | > | |
29 | ||
30 | <input | |
31 | type="submit" i18n-value value="Edit this caption" class="peertube-button orange-button" | |
32 | [disabled]="!form.valid" (click)="updateCaption()" | |
33 | > | |
34 | </div> | |
35 | </ng-container> | |
36 | </ng-template> |