]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/modal/confirm.component.html
6584db3e66ff505f25fb37b4b619fbdd4392f2fb
[github/Chocobozzz/PeerTube.git] / client / src / app / modal / confirm.component.html
1 <ng-template #confirmModal let-close="close" let-dismiss="dismiss">
2
3 <div class="modal-header">
4 <h4 class="modal-title">{{ title }}</h4>
5
6 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="dismiss()"></my-global-icon>
7 </div>
8
9 <div class="modal-body" >
10 <div [innerHtml]="message"></div>
11
12 <div *ngIf="inputLabel" class="form-group mt-3">
13 <label for="confirmInput">{{ inputLabel }}</label>
14
15 <input *ngIf="!isPasswordInput" type="text" id="confirmInput" name="confirmInput" [(ngModel)]="inputValue" />
16
17 <my-input-text *ngIf="isPasswordInput" inputId="confirmInput" [(ngModel)]="inputValue"></my-input-text>
18 </div>
19 </div>
20
21 <div class="modal-footer inputs">
22 <input
23 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
24 (click)="dismiss()" (key.enter)="dismiss()"
25 >
26
27 <input
28 ngbAutofocus
29 type="submit" [value]="confirmButtonText" class="peertube-button orange-button" [disabled]="isConfirmationDisabled()"
30 (click)="close()" (key.enter)="confirm()"
31 >
32 </div>
33 </ng-template>