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="btn-close btn-close-white"
5 i18n-aria-label aria-label="Close" (click)="close()"></button>
7 <div class="modal-body">
8 <form #cloneForm="ngForm" role="form" class="form-validated common-form striped-odd">
9 <div class="form-group row mt-2">
10 <label for="source_library" class="form-label col-sm-6 col-form-label" i18n>Source Library</label>
11 <div class="col-sm-6">
13 placeholder="Source Library..."
14 domId="source_library"
16 [limitPerms]="['STAFF_LOGIN']"
17 (onChange)="result.source_library = $event.id(); cloneForm.form.markAsDirty()">
21 <div class="form-group row mt-2">
22 <label for="target_library" class="form-label col-sm-6 col-form-label" i18n>Target Library</label>
23 <div class="col-sm-6">
25 placeholder="Target Library..."
26 domId="target_library"
28 [limitPerms]="['ADMIN_STAFF_PORTAL_PAGE']"
29 (onChange)="result.target_library = $event.id(); cloneForm.form.markAsDirty();">
33 <div class="form-group row mt-2">
34 <label for="overwrite_target" class="form-label col-sm-6 col-form-label" i18n>Clear Entries at Target Library?</label>
35 <div class="col-sm-6">
36 <input type="checkbox" id="overwrite_target" name="overwrite_target" [(ngModel)]="result.overwrite_target" />
41 <div class="modal-footer">
42 <button type="button" class="btn btn-info"
43 [disabled]="!result.source_library || !result.target_library || (result.target_library === result.source_library)"
44 (click)="close(result)" i18n>Clone</button>
45 <button type="button" class="btn btn-warning"
46 (click)="close()" i18n>Close</button>