]>
Commit | Line | Data |
---|---|---|
26b7305a C |
1 | <ng-template #modal> |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Blacklist 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 | ||
9 | <form novalidate [formGroup]="form" (ngSubmit)="blacklist()"> | |
10 | <div class="form-group"> | |
11 | <textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }"> | |
12 | </textarea> | |
13 | <div *ngIf="formErrors.reason" class="form-error"> | |
14 | {{ formErrors.reason }} | |
15 | </div> | |
16 | </div> | |
17 | ||
5abb9fbb C |
18 | <div class="form-group" *ngIf="video.isLocal"> |
19 | <my-peertube-checkbox | |
20 | inputName="unfederate" formControlName="unfederate" | |
54e78847 RK |
21 | i18n-labelText labelText="Unfederate the video" |
22 | > | |
23 | <ng-container ngProjectAs="description"> | |
24 | <span i18n>This will ask remote instances to delete it</span> | |
25 | </ng-container> | |
26 | </my-peertube-checkbox> | |
5abb9fbb C |
27 | </div> |
28 | ||
26b7305a C |
29 | <div class="form-group inputs"> |
30 | <span i18n class="action-button action-button-cancel" (click)="hide()"> | |
31 | Cancel | |
32 | </span> | |
33 | ||
34 | <input | |
35 | type="submit" i18n-value value="Submit" class="action-button-submit" | |
36 | [disabled]="!form.valid" | |
37 | > | |
38 | </div> | |
39 | </form> | |
40 | ||
41 | </div> | |
42 | </ng-template> |