blob: b2958caa471b13926853cad44152939cab16f4fe (
plain) (
tree)
|
|
<ng-template #modal>
<div class="modal-header">
<h4 i18n class="modal-title">Ban {{ userToBan.username }}</h4>
<span class="close" aria-hidden="true" (click)="hideBanUserModal()"></span>
</div>
<div class="modal-body">
<form novalidate [formGroup]="form" (ngSubmit)="banUser()">
<div class="form-group">
<textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }">
</textarea>
<div *ngIf="formErrors.reason" class="form-error">
{{ formErrors.reason }}
</div>
</div>
<div i18n>
A banned user will no longer be able to login.
</div>
<div class="form-group inputs">
<span i18n class="action-button action-button-cancel" (click)="hideBanUserModal()">Cancel</span>
<input
type="submit" i18n-value value="Ban this user" class="action-button-submit"
[disabled]="!form.valid"
>
</div>
</form>
</div>
</ng-template>
|