aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-report.component.html
blob: a9a7beb481ca9b436d444c1945c4a32f2e6a8fd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div bsModal #modal="bs-modal" class="modal" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">

      <div class="modal-header">
        <span class="close" aria-hidden="true" (click)="hide()"></span>
        <h4 class="modal-title">Report video</h4>
      </div>

      <div class="modal-body">

        <form novalidate [formGroup]="form" (ngSubmit)="report()">
          <div class="form-group">
            <textarea placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }">
            </textarea>
            <div *ngIf="formErrors.reason" class="form-error">
              {{ formErrors.reason }}
            </div>
          </div>

          <div class="form-group inputs">
            <span class="action-button action-button-cancel" (click)="hide()">
              Cancel
            </span>

            <input
              type="submit" value="Submit" class="action-button-submit"
              [disabled]="!form.valid"
            >
          </div>
        </form>

      </div>
    </div>
  </div>
</div>