]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video/modals/video-block.component.html
rename blacklist to block/blocklist, merge block and auto-block views
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / modals / video-block.component.html
CommitLineData
26b7305a
C
1<ng-template #modal>
2 <div class="modal-header">
5baee5fc 3 <h4 i18n class="modal-title">Blocklist video</h4>
457bb213 4 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
26b7305a
C
5 </div>
6
7 <div class="modal-body">
8
5baee5fc 9 <form novalidate [formGroup]="form" (ngSubmit)="block()">
26b7305a 10 <div class="form-group">
a6d5ff76
RK
11 <textarea
12 i18n-placeholder placeholder="Reason..." formControlName="reason"
13 [ngClass]="{ 'input-error': formErrors['reason'] }" class="form-control"
14 ></textarea>
26b7305a
C
15 <div *ngIf="formErrors.reason" class="form-error">
16 {{ formErrors.reason }}
17 </div>
18 </div>
19
5abb9fbb
C
20 <div class="form-group" *ngIf="video.isLocal">
21 <my-peertube-checkbox
22 inputName="unfederate" formControlName="unfederate"
54e78847
RK
23 i18n-labelText labelText="Unfederate the video"
24 >
25 <ng-container ngProjectAs="description">
26 <span i18n>This will ask remote instances to delete it</span>
27 </ng-container>
28 </my-peertube-checkbox>
5abb9fbb
C
29 </div>
30
26b7305a 31 <div class="form-group inputs">
a6d5ff76
RK
32 <input
33 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel"
34 (click)="hide()" (key.enter)="hide()"
35 >
26b7305a
C
36
37 <input
38 type="submit" i18n-value value="Submit" class="action-button-submit"
39 [disabled]="!form.valid"
40 >
41 </div>
42 </form>
43
44 </div>
45</ng-template>