]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-moderation/video-block.component.html
Refactor row selection reset
[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">
3cfa8176
C
3 <ng-container *ngIf="isMultiple()">
4 <h4 i18n class="modal-title">Block {{ videos.length }} videos</h4>
5 </ng-container>
6
7 <ng-container *ngIf="!isMultiple()">
8 <h4 i18n class="modal-title" *ngIf="!getSingleVideo().isLive">Block video "{{ getSingleVideo().name }}"</h4>
9 <h4 i18n class="modal-title" *ngIf="getSingleVideo().isLive">Block live "{{ getSingleVideo().name }}"</h4>
10 </ng-container>
11
457bb213 12 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
26b7305a
C
13 </div>
14
15 <div class="modal-body">
16
5baee5fc 17 <form novalidate [formGroup]="form" (ngSubmit)="block()">
26b7305a 18 <div class="form-group">
a6d5ff76 19 <textarea
1ebddadd 20 i18n-placeholder placeholder="Please describe the reason..." formControlName="reason"
a6d5ff76
RK
21 [ngClass]="{ 'input-error': formErrors['reason'] }" class="form-control"
22 ></textarea>
26b7305a
C
23 <div *ngIf="formErrors.reason" class="form-error">
24 {{ formErrors.reason }}
25 </div>
26 </div>
27
3cfa8176 28 <div class="form-group" *ngIf="hasLocal()">
5abb9fbb
C
29 <my-peertube-checkbox
30 inputName="unfederate" formControlName="unfederate"
3cfa8176 31 i18n-labelText labelText="Unfederate"
54e78847
RK
32 >
33 <ng-container ngProjectAs="description">
3cfa8176
C
34 <span *ngIf="isMultiple()" i18n>This will ask remote instances to delete local videos</span>
35 <span *ngIf="!isMultiple()" i18n>This will ask remote instances to delete this video</span>
54e78847
RK
36 </ng-container>
37 </my-peertube-checkbox>
5abb9fbb
C
38 </div>
39
3cfa8176
C
40 <strong class="live-info" *ngIf="hasLive()" i18n>
41 Blocking a live will automatically terminate the live stream.
d846d99c
C
42 </strong>
43
26b7305a 44 <div class="form-group inputs">
a6d5ff76 45 <input
266947e5 46 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
a6d5ff76
RK
47 (click)="hide()" (key.enter)="hide()"
48 >
26b7305a 49
3cfa8176 50 <input type="submit" i18n-value value="Block" class="peertube-button orange-button" [disabled]="!form.valid" />
26b7305a
C
51 </div>
52 </form>
53
54 </div>
55</ng-template>