LP#1775466 Angular(6) base application
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / admin-page / admin-page.component.html
1 <ng-template #successStrTmpl i18n>{{idlClassDef.label}} Update Succeeded</ng-template>
2 <eg-string #successString [template]="successStrTmpl"></eg-string>
3
4 <ng-template #createStrTmpl i18n>{{idlClassDef.label}} Succeessfully Created</ng-template>
5 <eg-string #createString [template]="createStrTmpl"></eg-string>
6
7 <ng-container *ngIf="orgField">
8   <div class="d-flex">
9     <div>
10       <div class="input-group">
11         <div class="input-group-prepend">
12           <span class="input-group-text">{{orgFieldLabel}}</span>
13         </div>
14         <eg-org-select 
15           [limitPerms]="viewPerms"
16           [initialOrg]="contextOrg"
17           (onChange)="orgOnChange($event)">
18         </eg-org-select>
19       </div>
20     </div>
21     <div class="pl-2">
22       <div class="form-check">
23         <input type="checkbox" (click)="grid.reload()" 
24           [disabled]="disableAncestorSelector()"
25           [(ngModel)]="includeOrgAncestors"
26           class="form-check-input" id="include-ancestors">
27         <label class="form-check-label" for="include-ancestors" i18n>+ Ancestors</label>
28       </div>
29       <div class="form-check">
30         <input type="checkbox" (click)="grid.reload()" 
31           [disabled]="disableDescendantSelector()"
32           [(ngModel)]="includeOrgDescendants" 
33           class="form-check-input" id="include-descendants">
34         <label class="form-check-label" for="include-descendants" i18n>+ Descendants</label>
35       </div>
36     </div>
37   </div>
38   <hr/>
39 </ng-container>
40
41 <!-- idlObject and fieldName applied programmatically -->
42 <eg-translate #translator></eg-translate>
43
44 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" 
45     [sortable]="true" persistKey="{{persistKey}}">
46   <eg-grid-toolbar-button [disabled]="!canCreate" 
47     label="New {{idlClassDef.label}}" i18n-label [action]="createNew">
48   </eg-grid-toolbar-button>
49   <eg-grid-toolbar-button [disabled]="translatableFields.length == 0" 
50     label="Apply Translations" i18n-label [action]="translate">
51   </eg-grid-toolbar-button>
52   <eg-grid-toolbar-action label="Delete Selected" i18n-label [action]="deleteSelected">
53   </eg-grid-toolbar-action>
54 </eg-grid>
55
56 <eg-fm-record-editor #editDialog idlClass="{{idlClass}}">
57 </eg-fm-record-editor>
58
59