]>
Commit | Line | Data |
---|---|---|
63347a0f C |
1 | <ng-template #modal> |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Report video</h4> | |
457bb213 | 4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> |
63347a0f | 5 | </div> |
4f8c0eb0 | 6 | |
63347a0f | 7 | <div class="modal-body"> |
4f8c0eb0 | 8 | |
a1b2f876 C |
9 | <div i18n class="information"> |
10 | Your report will be sent to moderators of {{ currentHost }}. | |
11 | <ng-container *ngIf="isRemoteVideo()"> It will be forwarded to origin instance {{ originHost }} too.</ng-container> | |
12 | </div> | |
13 | ||
63347a0f C |
14 | <form novalidate [formGroup]="form" (ngSubmit)="report()"> |
15 | <div class="form-group"> | |
16 | <textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }"> | |
17 | </textarea> | |
18 | <div *ngIf="formErrors.reason" class="form-error"> | |
19 | {{ formErrors.reason }} | |
20 | </div> | |
21 | </div> | |
5f0805d3 | 22 | |
63347a0f C |
23 | <div class="form-group inputs"> |
24 | <span i18n class="action-button action-button-cancel" (click)="hide()"> | |
25 | Cancel | |
26 | </span> | |
4f8c0eb0 | 27 | |
63347a0f C |
28 | <input |
29 | type="submit" i18n-value value="Submit" class="action-button-submit" | |
30 | [disabled]="!form.valid" | |
31 | > | |
4f8c0eb0 | 32 | </div> |
63347a0f C |
33 | </form> |
34 | ||
4f8c0eb0 | 35 | </div> |
63347a0f | 36 | </ng-template> |