1 <ng-template #dialogContent>
2 <div class="modal-header bg-info">
3 <h3 class="modal-title" i18n>Clone a Library's Portal Page Entries</h3>
4 <button type="button" class="close"
5 i18n-aria-label aria-label="Close" (click)="close()">
6 <span aria-hidden="true">×</span>
9 <div class="modal-body">
10 <form #cloneForm="ngForm" role="form" class="form-validated common-form striped-odd">
11 <div class="form-group row mt-2">
12 <label for="source_library" class="col-sm-6 col-form-label" i18n>Source Library</label>
13 <div class="col-sm-6">
15 placeholder="Source Library..."
16 domId="source_library"
18 [limitPerms]="['STAFF_LOGIN']"
19 (onChange)="result.source_library = $event.id(); cloneForm.form.markAsDirty()">
23 <div class="form-group row mt-2">
24 <label for="target_library" class="col-sm-6 col-form-label" i18n>Target Library</label>
25 <div class="col-sm-6">
27 placeholder="Target Library..."
28 domId="target_library"
30 [limitPerms]="['ADMIN_STAFF_PORTAL_PAGE']"
31 (onChange)="result.target_library = $event.id(); cloneForm.form.markAsDirty();">
35 <div class="form-group row mt-2">
36 <label for="overwrite_target" class="col-sm-6 col-form-label" i18n>Clear Entries at Target Library?</label>
37 <div class="col-sm-6">
38 <input type="checkbox" id="overwrite_target" name="overwrite_target" [(ngModel)]="result.overwrite_target" />
43 <div class="modal-footer">
44 <button type="button" class="btn btn-info"
45 [disabled]="!result.source_library || !result.target_library || (result.target_library === result.source_library)"
46 (click)="close(result)" i18n>Clone</button>
47 <button type="button" class="btn btn-warning"
48 (click)="close()" i18n>Close</button>