1 <cd-modal [modalRef]="activeModal">
3 class="modal-title">Move an image to trash</ng-container>
5 <ng-container class="modal-content">
11 <div class="modal-body">
12 <div class="alert alert-warning"
15 <span i18n>This image contains snapshot(s), which will prevent it
16 from being removed after moved to trash.</span>
19 <p i18n>To move <kbd>{{ imageSpecStr }}</kbd> to trash,
20 click <kbd>Move</kbd>. Optionally, you can pick an expiration date.</p>
22 <div class="form-group">
23 <label class="col-form-label"
25 i18n>Protection expires at</label>
27 placeholder="NOT PROTECTED"
30 formControlName="expiresAt"
31 [ngbPopover]="popContent"
35 (keypress)="p.close()">
37 <span class="invalid-feedback"
38 *ngIf="moveForm.showError('expiresAt', formDir, 'format')"
39 i18n>Wrong date format. Please use "YYYY-MM-DD HH:mm:ss".</span>
40 <span class="invalid-feedback"
41 *ngIf="moveForm.showError('expiresAt', formDir, 'expired')"
42 i18n>Protection has already expired. Please pick a future date or leave it empty.</span>
46 <div class="modal-footer">
47 <cd-form-button-panel (submitActionEvent)="moveImage()"
49 [submitText]="actionLabels.MOVE"></cd-form-button-panel>
55 <ng-template #popContent>
56 <cd-date-time-picker [control]="moveForm.get('expiresAt')"></cd-date-time-picker>