]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-moderation/video-block.component.html
Merge branch 'release/3.3.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / video-block.component.html
CommitLineData
26b7305a
C
1<ng-template #modal>
2 <div class="modal-header">
d846d99c
C
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>
457bb213 5 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
26b7305a
C
6 </div>
7
8 <div class="modal-body">
9
5baee5fc 10 <form novalidate [formGroup]="form" (ngSubmit)="block()">
26b7305a 11 <div class="form-group">
a6d5ff76 12 <textarea
1ebddadd 13 i18n-placeholder placeholder="Please describe the reason..." formControlName="reason"
a6d5ff76
RK
14 [ngClass]="{ 'input-error': formErrors['reason'] }" class="form-control"
15 ></textarea>
26b7305a
C
16 <div *ngIf="formErrors.reason" class="form-error">
17 {{ formErrors.reason }}
18 </div>
19 </div>
20
5abb9fbb
C
21 <div class="form-group" *ngIf="video.isLocal">
22 <my-peertube-checkbox
23 inputName="unfederate" formControlName="unfederate"
54e78847
RK
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>
5abb9fbb
C
30 </div>
31
d846d99c
C
32 <strong class="live-info" *ngIf="video.isLive" i18n>
33 Blocking this live will automatically terminate the live stream.
34 </strong>
35
26b7305a 36 <div class="form-group inputs">
a6d5ff76 37 <input
266947e5 38 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
a6d5ff76
RK
39 (click)="hide()" (key.enter)="hide()"
40 >
26b7305a 41
266947e5 42 <input type="submit" i18n-value value="Submit" class="peertube-button orange-button" [disabled]="!form.valid" />
26b7305a
C
43 </div>
44 </form>
45
46 </div>
47</ng-template>