124190d36f90f0ab346afdcaac6c5bf5a0b362ad
[Evergreen.git] /
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>
6   </div>
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">
12           <eg-org-select
13             placeholder="Source Library..."
14             domId="source_library"
15             i18n-placeholder
16             [limitPerms]="['STAFF_LOGIN']"
17             (onChange)="result.source_library = $event.id(); cloneForm.form.markAsDirty()">
18           </eg-org-select>
19         </div>
20       </div>
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">
24           <eg-org-select
25             placeholder="Target Library..."
26             domId="target_library"
27             i18n-placeholder
28             [limitPerms]="['ADMIN_STAFF_PORTAL_PAGE']"
29             (onChange)="result.target_library = $event.id(); cloneForm.form.markAsDirty();">
30           </eg-org-select>
31         </div>
32       </div>
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" />
37         </div>
38       </div>
39     </form>
40   </div>
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>
47   </div>
48 </ng-template>