aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/video/modals/video-report.component.html
blob: cc1d361b3d1dffe91569d66a67f217eabc295b35 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
                                                                                                        
        
 
                          
 
                                  
                                                                                                                                                                                        

          







                                                                                                                                        
 



                                                                               
 



                                                                              
            

           
        
              
<ng-template #modal>
  <div class="modal-header">
    <h4 i18n class="modal-title">Report video</h4>
    <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
  </div>

  <div class="modal-body">

    <div i18n class="information">
      Your report will be sent to moderators of {{ currentHost }}<ng-container *ngIf="isRemoteVideo()"> and will be forwarded to the video origin ({{ originHost }}) too</ng-container>.
    </div>

    <form novalidate [formGroup]="form" (ngSubmit)="report()">
      <div class="form-group">
        <textarea i18n-placeholder 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 i18n class="action-button action-button-cancel" (click)="hide()">
          Cancel
        </span>

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

  </div>
</ng-template>