]>
Commit | Line | Data |
---|---|---|
4f8c0eb0 C |
1 | <div bsModal #modal="bs-modal" class="modal" tabindex="-1"> |
2 | <div class="modal-dialog"> | |
5f0805d3 | 3 | <div class="modal-content"> |
4f8c0eb0 C |
4 | |
5 | <div class="modal-header"> | |
5f0805d3 | 6 | <span class="close" aria-hidden="true" (click)="hide()"></span> |
b1d40cff | 7 | <h4 i18n class="modal-title">Report video</h4> |
4f8c0eb0 C |
8 | </div> |
9 | ||
10 | <div class="modal-body"> | |
11 | ||
0727cab0 | 12 | <form novalidate [formGroup]="form" (ngSubmit)="report()"> |
4f8c0eb0 | 13 | <div class="form-group"> |
b1d40cff | 14 | <textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }"> |
4f8c0eb0 | 15 | </textarea> |
0727cab0 | 16 | <div *ngIf="formErrors.reason" class="form-error"> |
4f8c0eb0 C |
17 | {{ formErrors.reason }} |
18 | </div> | |
19 | </div> | |
20 | ||
5f0805d3 | 21 | <div class="form-group inputs"> |
b1d40cff | 22 | <span i18n class="action-button action-button-cancel" (click)="hide()"> |
5f0805d3 C |
23 | Cancel |
24 | </span> | |
25 | ||
4f8c0eb0 | 26 | <input |
b1d40cff | 27 | type="submit" i18n-value value="Submit" class="action-button-submit" |
0727cab0 | 28 | [disabled]="!form.valid" |
4f8c0eb0 C |
29 | > |
30 | </div> | |
31 | </form> | |
32 | ||
33 | </div> | |
34 | </div> | |
35 | </div> | |
36 | </div> |