]>
Commit | Line | Data |
---|---|---|
141b177d C |
1 | <ng-template #modal> |
2 | <div class="modal-header"> | |
a282e4d8 | 3 | <h4 i18n class="modal-title">{{ getModalTitle() }}</h4> |
457bb213 C |
4 | |
5 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | |
141b177d C |
6 | </div> |
7 | ||
8 | <div class="modal-body"> | |
a282e4d8 C |
9 | <div class="description" i18n> |
10 | A banned user will no longer be able to login. | |
11 | </div> | |
12 | ||
141b177d C |
13 | <form novalidate [formGroup]="form" (ngSubmit)="banUser()"> |
14 | <div class="form-group"> | |
a6d5ff76 RK |
15 | <textarea |
16 | i18n-placeholder placeholder="Reason..." formControlName="reason" | |
17 | class="form-control" [ngClass]="{ 'input-error': formErrors['reason'] }" | |
18 | ></textarea> | |
141b177d C |
19 | <div *ngIf="formErrors.reason" class="form-error"> |
20 | {{ formErrors.reason }} | |
21 | </div> | |
22 | </div> | |
23 | ||
5a8de57d P |
24 | <div class="form-group"> |
25 | <my-peertube-checkbox | |
26 | inputName="banMute" formControlName="mute" | |
a282e4d8 C |
27 | i18n-labelText labelText="Mute to also hide videos/comments" |
28 | > | |
29 | </my-peertube-checkbox> | |
5a8de57d P |
30 | </div> |
31 | ||
141b177d | 32 | <div class="form-group inputs"> |
a6d5ff76 | 33 | <input |
266947e5 | 34 | type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button" |
a6d5ff76 RK |
35 | (click)="hide()" (key.enter)="hide()" |
36 | > | |
141b177d | 37 | |
a282e4d8 | 38 | <input type="submit" i18n-value [value]="getModalTitle()" class="peertube-button orange-button" [disabled]="!form.valid" /> |
141b177d C |
39 | </div> |
40 | </form> | |
41 | </div> | |
42 | ||
457bb213 | 43 | </ng-template> |