2018-08-09 14:55:06 +02:00
< ng-template # modal >
< div class = "modal-header" >
< h4 i18n class = "modal-title" > Report video< / h4 >
2019-01-16 16:05:40 +01:00
< my-global-icon iconName = "cross" aria-label = "Close" role = "button" ( click ) = " hide ( ) " > < / my-global-icon >
2018-08-09 14:55:06 +02:00
< / div >
2017-01-20 19:22:15 +01:00
2018-08-09 14:55:06 +02:00
< div class = "modal-body" >
2017-01-20 19:22:15 +01:00
2018-12-05 11:05:54 +01:00
< div i18n class = "information" >
2020-03-27 15:19:03 +01:00
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 > .
2018-12-05 11:05:54 +01:00
< / div >
2018-08-09 14:55:06 +02:00
< 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 >
2017-12-20 17:49:58 +01:00
2018-08-09 14:55:06 +02:00
< div class = "form-group inputs" >
< span i18n class = "action-button action-button-cancel" ( click ) = " hide ( ) " >
Cancel
< / span >
2017-01-20 19:22:15 +01:00
2018-08-09 14:55:06 +02:00
< input
type="submit" i18n-value value="Submit" class="action-button-submit"
[disabled]="!form.valid"
>
2017-01-20 19:22:15 +01:00
< / div >
2018-08-09 14:55:06 +02:00
< / form >
2017-01-20 19:22:15 +01:00
< / div >
2018-08-09 14:55:06 +02:00
< / ng-template >