1 <ng-template #successStrTmpl i18n>{{recordLabel || idlClassDef.label}} Update Succeeded</ng-template>
2 <eg-string #successString [template]="successStrTmpl"></eg-string>
4 <ng-template #updateFailedStrTmpl i18n>Update of {{recordLabel || idlClassDef.label}} failed</ng-template>
5 <eg-string #updateFailedString [template]="updateFailedStrTmpl"></eg-string>
7 <ng-template #deleteFailedStrTmpl i18n>Delete of {{recordLabel || idlClassDef.label}} failed or was not allowed</ng-template>
8 <eg-string #deleteFailedString [template]="deleteFailedStrTmpl"></eg-string>
10 <ng-template #deleteSuccessStrTmpl i18n>{{recordLabel || idlClassDef.label}} Successfully Deleted</ng-template>
11 <eg-string #deleteSuccessString [template]="deleteSuccessStrTmpl"></eg-string>
13 <ng-template #undeleteFailedStrTmpl i18n>Undelete of {{idlClassDef.label}} failed or was not allowed</ng-template>
14 <eg-string #undeleteFailedString [template]="undeleteFailedStrTmpl"></eg-string>
16 <ng-template #undeleteSuccessStrTmpl i18n>{{idlClassDef.label}} Successfully undeleted</ng-template>
17 <eg-string #undeleteSuccessString [template]="undeleteSuccessStrTmpl"></eg-string>
19 <ng-template #createStrTmpl i18n>{{recordLabel || idlClassDef.label}} Successfully Created</ng-template>
20 <eg-string #createString [template]="createStrTmpl"></eg-string>
22 <ng-template #createErrStrTmpl i18n>Failed to create new {{recordLabel || idlClassDef.label}}</ng-template>
23 <eg-string #createErrString [template]="createErrStrTmpl"></eg-string>
25 <eg-confirm-dialog #deleteConfirmDialog
27 dialogTitle="Delete Selected Rows"
28 [dialogBodyTemplate]="deleteConfirmMsg">
30 <ng-template #deleteConfirmMsg>
31 <span *ngIf="!deleteConfirmation" i18n>Are you sure you want to delete the selected rows? This will also delete any data depending on the rows deleted.</span>
32 <span *ngIf="deleteConfirmation">{{deleteConfirmation}}</span>
35 <ng-container *ngIf="orgField || gridFilters">
37 <div class="col-lg-6">
38 <ng-container *ngIf="orgField">
40 ariaLabel="Org Unit" i18n-ariaLabel
41 [persistKey]="contextOrgSelectorPersistKey"
42 [limitPerms]="viewPerms"
43 [selectedOrgId]="contextOrg.id()"
44 [(ngModel)]="searchOrgs"
45 (ngModelChange)="contextOrgChanged($event)">
46 </eg-org-family-select>
49 <div class="col-lg-6 d-flex">
50 <div class="flex-1"></div><!-- push right -->
51 <ng-container *ngIf="gridFilters">
52 <span i18n>Filters Applied: {{gridFilters | json}}</span>
53 <a *ngIf="!hideClearFilters" class="ps-2 fst-italic"
54 [attr.href]="clearGridFiltersUrl()" i18n>Clear Filters</a>
56 <button class="btn btn-info label-with-material-icon" type="button"
57 (click)="goBack()" [disabled]="hasNoHistory()">
58 <span class="material-icons" aria-hidden="true">keyboard_backspace</span>
59 <span i18n>Return</span>
67 <!-- idlObject and fieldName applied programmatically -->
68 <eg-translate #translator></eg-translate>
70 <ng-container *ngIf="helpTemplate">
71 <ng-container *ngTemplateOutlet="helpTemplate"></ng-container>
74 <ng-template #configFieldLink let-row="row" let-col="col">
75 <a i18n-title title="Link To {{col.label}}"
76 [attr.href]="configFieldLinkUrl(row, col)">{{configLinkLabel(row, col)}}</a>
79 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" hideFields="{{hideGridFields}}"
80 [sortable]="true" persistKey="{{persistKey}}" autoGeneratedColumnOrder="{{fieldOrder}}"
81 (onRowActivate)="showEditDialog($event)"
82 [initialFilterValues]="initialFilterValues"
83 [filterable]="true" [stickyHeader]="true">
84 <eg-grid-toolbar-button [disabled]="!canCreate"
85 label="New {{recordLabel || idlClassDef.label}}" i18n-label (onClick)="createNew()">
86 </eg-grid-toolbar-button>
87 <eg-grid-toolbar-button [disabled]="translatableFields.length === 0"
88 label="Apply Translations" i18n-label (onClick)="translate()">
89 </eg-grid-toolbar-button>
90 <eg-grid-toolbar-action label="Edit Selected" i18n-label
91 (onClick)="editSelected($event)" *ngIf="!disableEdit">
92 </eg-grid-toolbar-action>
93 <eg-grid-toolbar-action label="Delete Selected" i18n-label (onClick)="deleteSelected($event)"
94 [disableOnRows]="shouldDisableDelete" *ngIf="!disableDelete">
95 </eg-grid-toolbar-action>
96 <eg-grid-toolbar-action label="Undelete Selected" i18n-label (onClick)="undeleteSelected($event)"
97 [disableOnRows]="shouldDisableUndelete" *ngIf="enableUndelete">
98 </eg-grid-toolbar-action>
99 <ng-container *ngFor="let cf of configFields">
100 <eg-grid-column name="{{cf.name}}" [cellTemplate]="configFieldLink">
103 <ng-container *ngFor="let tf of templateFields">
104 <eg-grid-column name="{{tf.name}}" [cellTemplate]="tf.template">
109 <eg-fm-record-editor #editDialog idlClass="{{idlClass}}"
110 [recordLabel]="recordLabel"
111 [fieldOptions]="fieldOptions"
112 [fieldOrder]="fieldOrder"
113 [defaultNewRecord]="defaultNewRecord"
114 [preloadLinkedValues]="true"
115 [orgDefaultAllowed]="orgDefaultAllowed"
116 [readonlyFields]="readonlyFields">
117 </eg-fm-record-editor>