]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-moderation/user-ban-modal.component.html
Add ability to mute user when banning them
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / user-ban-modal.component.html
CommitLineData
141b177d
C
1<ng-template #modal>
2 <div class="modal-header">
791645e6 3 <h4 i18n class="modal-title">Ban</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">
9 <form novalidate [formGroup]="form" (ngSubmit)="banUser()">
10 <div class="form-group">
a6d5ff76
RK
11 <textarea
12 i18n-placeholder placeholder="Reason..." formControlName="reason"
13 class="form-control" [ngClass]="{ 'input-error': formErrors['reason'] }"
14 ></textarea>
141b177d
C
15 <div *ngIf="formErrors.reason" class="form-error">
16 {{ formErrors.reason }}
17 </div>
18 </div>
19
20 <div i18n>
21 A banned user will no longer be able to login.
22 </div>
23
5a8de57d
P
24 <div class="form-group">
25 <my-peertube-checkbox
26 inputName="banMute" formControlName="mute"
27 i18n-labelText labelText="Mute this account"
28 ></my-peertube-checkbox>
29 </div>
30
141b177d 31 <div class="form-group inputs">
a6d5ff76 32 <input
266947e5 33 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
a6d5ff76
RK
34 (click)="hide()" (key.enter)="hide()"
35 >
141b177d 36
884b1777 37 <input type="submit" i18n-value [value]="modalMessage" class="peertube-button orange-button" [disabled]="!form.valid" />
141b177d
C
38 </div>
39 </form>
40 </div>
41
457bb213 42</ng-template>