]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.html
Refactor video views
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-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">
2bc9bd08
RK
11 <textarea
12 formControlName="moderationComment" ngbAutofocus i18-placeholder placeholder="Comment this report…"
13 [ngClass]="{ 'input-error': formErrors['moderationComment'] }" class="form-control">
efc9e845
C
14 </textarea>
15 <div *ngIf="formErrors.moderationComment" class="form-error">
16 {{ formErrors.moderationComment }}
17 </div>
18 </div>
19
3195cd1c 20 <div class="form-group" i18n>
efc9e845
C
21 This comment can only be seen by you or the other moderators.
22 </div>
23
24 <div class="form-group inputs">
a6d5ff76 25 <input
266947e5 26 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
a6d5ff76
RK
27 (click)="hide()" (key.enter)="hide()"
28 >
efc9e845 29
266947e5 30 <input type="submit" i18n-value value="Update this comment" class="peertube-button orange-button" [disabled]="!form.valid" />
efc9e845
C
31 </div>
32 </form>
33 </div>
34
3195cd1c 35</ng-template>