]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/+video-edit/shared/video-caption-edit-modal-content/video-caption-edit-modal-content.component.html
Set scroll position at top of the textarea when opening the subtitle editor.
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / shared / video-caption-edit-modal-content / video-caption-edit-modal-content.component.html
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>