<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>
