]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-moderation/user-ban-modal.component.html
Refactoring margin and padding mixins
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / user-ban-modal.component.html
index 365eb1938d7ee59d730f5bcd9eedeb592a0d7e43..2b6726bdc5bdfe41c5aadab8addbc3dc38cc77c3 100644 (file)
@@ -1,11 +1,15 @@
 <ng-template #modal>
   <div class="modal-header">
-    <h4 i18n class="modal-title">Ban</h4>
+    <h4 i18n class="modal-title">{{ getModalTitle() }}</h4>
 
     <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
   </div>
 
   <div class="modal-body">
+    <div class="description" i18n>
+      A banned user will no longer be able to login.
+    </div>
+
     <form novalidate [formGroup]="form" (ngSubmit)="banUser()">
       <div class="form-group">
         <textarea
         </div>
       </div>
 
-      <div i18n>
-        A banned user will no longer be able to login.
+      <div class="form-group">
+        <my-peertube-checkbox
+          inputName="banMute" formControlName="mute"
+          i18n-labelText labelText="Mute to also hide videos/comments"
+        >
+        </my-peertube-checkbox>
       </div>
 
       <div class="form-group inputs">
         <input
-          type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel"
+          type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
           (click)="hide()" (key.enter)="hide()"
         >
 
-        <input
-          type="submit" i18n-value value="Ban this user" class="action-button-submit"
-          [disabled]="!form.valid"
-        >
+        <input type="submit" i18n-value [value]="getModalTitle()" class="peertube-button orange-button" [disabled]="!form.valid" />
       </div>
     </form>
   </div>