]> 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 7129b00ca9e3414524ac5b1125eeb1191f717fa8..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">
@@ -27,7 +35,7 @@
           (click)="hide()" (key.enter)="hide()"
         >
 
-        <input type="submit" i18n-value value="Ban this user" class="peertube-button orange-button" [disabled]="!form.valid" />
+        <input type="submit" i18n-value [value]="getModalTitle()" class="peertube-button orange-button" [disabled]="!form.valid" />
       </div>
     </form>
   </div>