LP1825851 Server managed/processed print templates
[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 #updateFailedStrTmpl i18n>Update of {{idlClassDef.label}} failed</ng-template>
5 <eg-string #updateFailedString [template]="updateFailedStrTmpl"></eg-string>
6
7
8 <ng-template #createStrTmpl i18n>{{idlClassDef.label}} Succeessfully Created</ng-template>
9 <eg-string #createString [template]="createStrTmpl"></eg-string>
10
11 <ng-template #createErrStrTmpl i18n>Failed to create new {{idlClassDef.label}}</ng-template>
12 <eg-string #createErrString [template]="createErrStrTmpl"></eg-string>
13
14 <ng-container *ngIf="orgField">
15   <eg-org-family-select
16     [limitPerms]="viewPerms" 
17     [selectedOrgId]="contextOrg.id()"
18     [(ngModel)]="searchOrgs"
19     (ngModelChange)="grid.reload()">
20   </eg-org-family-select>
21   <hr/>
22 </ng-container>
23
24 <!-- idlObject and fieldName applied programmatically -->
25 <eg-translate #translator></eg-translate>
26
27 <ng-container *ngIf="helpTemplate">
28   <ng-container *ngTemplateOutlet="helpTemplate"></ng-container>
29 </ng-container>
30
31 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" 
32     [sortable]="true" persistKey="{{persistKey}}" [showLinkSelectors]="true">
33   <eg-grid-toolbar-button [disabled]="!canCreate" 
34     label="New {{idlClassDef.label}}" i18n-label (onClick)="createNew()">
35   </eg-grid-toolbar-button>
36   <eg-grid-toolbar-button [disabled]="translatableFields.length == 0" 
37     label="Apply Translations" i18n-label (onClick)="translate()">
38   </eg-grid-toolbar-button>
39   <eg-grid-toolbar-action label="Edit Selected" i18n-label (onClick)="editSelected($event)">
40   </eg-grid-toolbar-action>
41   <eg-grid-toolbar-action label="Delete Selected" i18n-label (onClick)="deleteSelected($event)">
42   </eg-grid-toolbar-action>
43 </eg-grid>
44
45 <eg-fm-record-editor #editDialog idlClass="{{idlClass}}" 
46     [fieldOptions]="fieldOptions"
47     [preloadLinkedValues]="true" readonlyFields="{{readonlyFields}}">
48 </eg-fm-record-editor>
49
50