]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-moderation/video-block.component.html
e982c4d7748114da19db213a20e199d07329d7c4
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / video-block.component.html
1 <ng-template #modal>
2 <div class="modal-header">
3 <h4 i18n class="modal-title" *ngIf="!video.isLive">Block video "{{ video.name }}"</h4>
4 <h4 i18n class="modal-title" *ngIf="video.isLive">Block live "{{ video.name }}"</h4>
5 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
6 </div>
7
8 <div class="modal-body">
9
10 <form novalidate [formGroup]="form" (ngSubmit)="block()">
11 <div class="form-group">
12 <textarea
13 i18n-placeholder placeholder="Please describe the reason..." formControlName="reason"
14 [ngClass]="{ 'input-error': formErrors['reason'] }" class="form-control"
15 ></textarea>
16 <div *ngIf="formErrors.reason" class="form-error">
17 {{ formErrors.reason }}
18 </div>
19 </div>
20
21 <div class="form-group" *ngIf="video.isLocal">
22 <my-peertube-checkbox
23 inputName="unfederate" formControlName="unfederate"
24 i18n-labelText labelText="Unfederate the video"
25 >
26 <ng-container ngProjectAs="description">
27 <span i18n>This will ask remote instances to delete it</span>
28 </ng-container>
29 </my-peertube-checkbox>
30 </div>
31
32 <strong class="live-info" *ngIf="video.isLive" i18n>
33 Blocking this live will automatically terminate the live stream.
34 </strong>
35
36 <div class="form-group inputs">
37 <input
38 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel"
39 (click)="hide()" (key.enter)="hide()"
40 >
41
42 <input
43 type="submit" i18n-value value="Submit" class="action-button-submit"
44 [disabled]="!form.valid"
45 >
46 </div>
47 </form>
48
49 </div>
50 </ng-template>