]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/video/modals/video-report.component.html
Add overview of a user's actions in user-edit (#2558)
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / modals / video-report.component.html
1 <ng-template #modal>
2 <div class="modal-header">
3 <h4 i18n class="modal-title">Report video</h4>
4 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
5 </div>
6
7 <div class="modal-body">
8
9 <div i18n class="information">
10 Your report will be sent to moderators of {{ currentHost }}<ng-container *ngIf="isRemoteVideo()"> and will be forwarded to the video origin ({{ originHost }}) too</ng-container>.
11 </div>
12
13 <form novalidate [formGroup]="form" (ngSubmit)="report()">
14 <div class="form-group">
15 <textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }">
16 </textarea>
17 <div *ngIf="formErrors.reason" class="form-error">
18 {{ formErrors.reason }}
19 </div>
20 </div>
21
22 <div class="form-group inputs">
23 <span i18n class="action-button action-button-cancel" (click)="hide()">
24 Cancel
25 </span>
26
27 <input
28 type="submit" i18n-value value="Submit" class="action-button-submit"
29 [disabled]="!form.valid"
30 >
31 </div>
32 </form>
33
34 </div>
35 </ng-template>