]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.html
Refactor how we use icons
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-abuse-list / moderation-comment-modal.component.html
CommitLineData
efc9e845
C
1<ng-template #modal>
2 <div class="modal-header">
3 <h4 i18n class="modal-title">Moderation comment</h4>
457bb213
C
4
5 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
efc9e845
C
6 </div>
7
8 <div class="modal-body">
9 <form novalidate [formGroup]="form" (ngSubmit)="banUser()">
10 <div class="form-group">
11 <textarea formControlName="moderationComment" [ngClass]="{ 'input-error': formErrors['moderationComment'] }">
12 </textarea>
13 <div *ngIf="formErrors.moderationComment" class="form-error">
14 {{ formErrors.moderationComment }}
15 </div>
16 </div>
17
3195cd1c 18 <div class="form-group" i18n>
efc9e845
C
19 This comment can only be seen by you or the other moderators.
20 </div>
21
22 <div class="form-group inputs">
457bb213 23 <span i18n class="action-button action-button-cancel" (click)="hide()">Cancel</span>
efc9e845
C
24
25 <input
26 type="submit" i18n-value value="Update this comment" class="action-button-submit"
27 [disabled]="!form.valid"
28 >
29 </div>
30 </form>
31 </div>
32
3195cd1c 33</ng-template>