diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared/video-caption-edit-modal/video-caption-edit-modal.component.html')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-caption-edit-modal/video-caption-edit-modal.component.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal/video-caption-edit-modal.component.html b/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal/video-caption-edit-modal.component.html new file mode 100644 index 000000000..4543b93d8 --- /dev/null +++ b/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal/video-caption-edit-modal.component.html | |||
@@ -0,0 +1,36 @@ | |||
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"> | ||
20 | {{ formErrors.description }} | ||
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> | ||