diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared/video-caption-edit-modal-content/video-caption-edit-modal-content.component.html')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-caption-edit-modal-content/video-caption-edit-modal-content.component.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal-content/video-caption-edit-modal-content.component.html b/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal-content/video-caption-edit-modal-content.component.html new file mode 100644 index 000000000..e8079c74e --- /dev/null +++ b/client/src/app/+videos/+video-edit/shared/video-caption-edit-modal-content/video-caption-edit-modal-content.component.html | |||
@@ -0,0 +1,34 @@ | |||
1 | <ng-container [formGroup]="form"> | ||
2 | <div class="modal-header"> | ||
3 | <h4 i18n class="modal-title">Edit caption</h4> | ||
4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | ||
5 | </div> | ||
6 | |||
7 | <div class="modal-body"> | ||
8 | <label i18n for="captionFileContent">Caption</label> | ||
9 | <textarea | ||
10 | id="captionFileContent" | ||
11 | formControlName="captionFileContent" | ||
12 | class="form-control caption-textarea" | ||
13 | [ngClass]="{ 'input-error': formErrors['captionFileContent'] }" | ||
14 | #textarea | ||
15 | > | ||
16 | </textarea> | ||
17 | |||
18 | <div *ngIf="formErrors.captionFileContent" class="form-error"> | ||
19 | {{ formErrors.captionFileContent }} | ||
20 | </div> | ||
21 | </div> | ||
22 | |||
23 | <div class="modal-footer inputs"> | ||
24 | <input | ||
25 | type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button" | ||
26 | (click)="cancel()" (key.enter)="cancel()" | ||
27 | > | ||
28 | |||
29 | <input | ||
30 | type="submit" i18n-value value="Edit this caption" class="peertube-button orange-button" | ||
31 | [disabled]="!form.valid" (click)="updateCaption()" | ||
32 | > | ||
33 | </div> | ||
34 | </ng-container> | ||