aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/videos/video-watch/video-report.component.html
blob: 741080ead2a8d02aa8bef5c59e2b61b1d029be5d (plain) (tree)





































                                                                                
<div bsModal #modal="bs-modal" class="modal" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content modal-lg">

      <div class="modal-header">
        <button type="button" class="close" aria-label="Close" (click)="hide()">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">Report video</h4>
      </div>

      <div class="modal-body">

        <form novalidate [formGroup]="form">
          <div class="form-group">
            <label for="description">Reason</label>
            <textarea
              id="reason" class="form-control" placeholder="Reason..."
              formControlName="reason"
            >
            </textarea>
            <div *ngIf="formErrors.reason" class="alert alert-danger">
              {{ formErrors.reason }}
            </div>
          </div>

          <div class="form-group">
            <input
              type="button" value="Report" class="btn btn-default form-control"
              [disabled]="!form.valid" (click)="report()"
            >
          </div>
        </form>

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