diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-09 17:51:25 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-09 17:55:05 +0200 |
commit | 141b177db088891e84040f68aa95008fb52f1d44 (patch) | |
tree | 20168077514c920f5b4da4696707db55f51b158d /client/src/app/+admin/users/user-list/user-ban-modal.component.html | |
parent | 63347a0ff966c7863e5b7431effa1cb0668df893 (diff) | |
download | PeerTube-141b177db088891e84040f68aa95008fb52f1d44.tar.gz PeerTube-141b177db088891e84040f68aa95008fb52f1d44.tar.zst PeerTube-141b177db088891e84040f68aa95008fb52f1d44.zip |
Add ability to ban/unban users
Diffstat (limited to 'client/src/app/+admin/users/user-list/user-ban-modal.component.html')
-rw-r--r-- | client/src/app/+admin/users/user-list/user-ban-modal.component.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/client/src/app/+admin/users/user-list/user-ban-modal.component.html b/client/src/app/+admin/users/user-list/user-ban-modal.component.html new file mode 100644 index 000000000..b2958caa4 --- /dev/null +++ b/client/src/app/+admin/users/user-list/user-ban-modal.component.html | |||
@@ -0,0 +1,32 @@ | |||
1 | <ng-template #modal> | ||
2 | <div class="modal-header"> | ||
3 | <h4 i18n class="modal-title">Ban {{ userToBan.username }}</h4> | ||
4 | <span class="close" aria-hidden="true" (click)="hideBanUserModal()"></span> | ||
5 | </div> | ||
6 | |||
7 | <div class="modal-body"> | ||
8 | <form novalidate [formGroup]="form" (ngSubmit)="banUser()"> | ||
9 | <div class="form-group"> | ||
10 | <textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }"> | ||
11 | </textarea> | ||
12 | <div *ngIf="formErrors.reason" class="form-error"> | ||
13 | {{ formErrors.reason }} | ||
14 | </div> | ||
15 | </div> | ||
16 | |||
17 | <div i18n> | ||
18 | A banned user will no longer be able to login. | ||
19 | </div> | ||
20 | |||
21 | <div class="form-group inputs"> | ||
22 | <span i18n class="action-button action-button-cancel" (click)="hideBanUserModal()">Cancel</span> | ||
23 | |||
24 | <input | ||
25 | type="submit" i18n-value value="Ban this user" class="action-button-submit" | ||
26 | [disabled]="!form.valid" | ||
27 | > | ||
28 | </div> | ||
29 | </form> | ||
30 | </div> | ||
31 | |||
32 | </ng-template> \ No newline at end of file | ||