1
0
Fork 0
peertube/client/src/app/shared/shared-moderation/video-block.component.html

56 lines
2.1 KiB
HTML
Raw Normal View History

2018-08-13 10:57:13 -04:00
<ng-template #modal>
<div class="modal-header">
2021-11-17 05:18:49 -05:00
<ng-container *ngIf="isMultiple()">
<h4 i18n class="modal-title">Block {{ videos.length }} videos</h4>
</ng-container>
<ng-container *ngIf="!isMultiple()">
<h4 i18n class="modal-title" *ngIf="!getSingleVideo().isLive">Block video "{{ getSingleVideo().name }}"</h4>
<h4 i18n class="modal-title" *ngIf="getSingleVideo().isLive">Block live "{{ getSingleVideo().name }}"</h4>
</ng-container>
<my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
2018-08-13 10:57:13 -04:00
</div>
<div class="modal-body">
<form novalidate [formGroup]="form" (ngSubmit)="block()">
2018-08-13 10:57:13 -04:00
<div class="form-group">
<textarea
i18n-placeholder placeholder="Please describe the reason..." formControlName="reason"
[ngClass]="{ 'input-error': formErrors['reason'] }" class="form-control"
></textarea>
2018-08-13 10:57:13 -04:00
<div *ngIf="formErrors.reason" class="form-error">
{{ formErrors.reason }}
</div>
</div>
2021-11-17 05:18:49 -05:00
<div class="form-group" *ngIf="hasLocal()">
<my-peertube-checkbox
inputName="unfederate" formControlName="unfederate"
2021-11-17 05:18:49 -05:00
i18n-labelText labelText="Unfederate"
>
<ng-container ngProjectAs="description">
2021-11-17 05:18:49 -05:00
<span *ngIf="isMultiple()" i18n>This will ask remote instances to delete local videos</span>
<span *ngIf="!isMultiple()" i18n>This will ask remote instances to delete this video</span>
</ng-container>
</my-peertube-checkbox>
</div>
2021-11-17 05:18:49 -05:00
<strong class="live-info" *ngIf="hasLive()" i18n>
Blocking a live will automatically terminate the live stream.
2020-10-28 05:49:20 -04:00
</strong>
2018-08-13 10:57:13 -04:00
<div class="form-group inputs">
<input
2021-04-14 10:39:37 -04:00
type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
(click)="hide()" (key.enter)="hide()"
>
2018-08-13 10:57:13 -04:00
2021-11-17 05:18:49 -05:00
<input type="submit" i18n-value value="Block" class="peertube-button orange-button" [disabled]="!form.valid" />
2018-08-13 10:57:13 -04:00
</div>
</form>
</div>
</ng-template>