1 <ng-template #successStrTmpl i18n>{{idlClassDef.label}} Update Succeeded</ng-template>
2 <eg-string #successString [template]="successStrTmpl"></eg-string>
4 <ng-template #updateFailedStrTmpl i18n>Update of {{idlClassDef.label}} failed</ng-template>
5 <eg-string #updateFailedString [template]="updateFailedStrTmpl"></eg-string>
7 <ng-template #deleteFailedStrTmpl i18n>Delete of {{idlClassDef.label}} failed or was not allowed</ng-template>
8 <eg-string #deleteFailedString [template]="deleteFailedStrTmpl"></eg-string>
10 <ng-template #deleteSuccessStrTmpl i18n>{{idlClassDef.label}} Successfully Deleted</ng-template>
11 <eg-string #deleteSuccessString [template]="deleteSuccessStrTmpl"></eg-string>
13 <ng-template #createStrTmpl i18n>{{idlClassDef.label}} Successfully Created</ng-template>
14 <eg-string #createString [template]="createStrTmpl"></eg-string>
16 <ng-template #createErrStrTmpl i18n>Failed to create new {{idlClassDef.label}}</ng-template>
17 <eg-string #createErrString [template]="createErrStrTmpl"></eg-string>
19 <ng-container *ngIf="orgField">
21 <div class="col-lg-6">
22 <ng-container *ngIf="orgField">
24 [limitPerms]="viewPerms"
25 [selectedOrgId]="contextOrg.id()"
26 [(ngModel)]="searchOrgs"
27 (ngModelChange)="grid.reload()">
28 </eg-org-family-select>
35 <!-- idlObject and fieldName applied programmatically -->
36 <eg-translate #translator></eg-translate>
38 <ng-container *ngIf="helpTemplate">
39 <ng-container *ngTemplateOutlet="helpTemplate"></ng-container>
42 <ng-template #configFieldLink let-row="row" let-col="col">
43 <a i18n-title title="Link To {{col.label}}"
44 [attr.href]="configFieldLinkUrl(row, col)">{{configLinkLabel(row, col)}}</a>
47 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" hideFields="{{hideGridFields}}"
48 [sortable]="true" persistKey="{{persistKey}}" autoGeneratedColumnOrder="{{fieldOrder}}"
49 [filterable]="true" [stickyHeader]="true"
50 (onRowActivate)="editSelected([$event])"
51 [cellTextGenerator]="cellTextGenerator">
52 <eg-grid-toolbar-button [disabled]="!canCreate"
53 label="New {{idlClassDef.label}}" i18n-label (onClick)="createNew()">
54 </eg-grid-toolbar-button>
55 <eg-grid-toolbar-action label="Edit Selected" i18n-label (onClick)="editSelected($event)"
56 group="Selected" i18n-group [disableOnRows]="notOneSelectedRow">
57 </eg-grid-toolbar-action>
58 <eg-grid-toolbar-action label="Delete Selected" i18n-label (onClick)="deleteSelected($event)"
59 group="Selected" i18n-group [disableOnRows]="notOneSelectedRow">
60 </eg-grid-toolbar-action>
61 <eg-grid-toolbar-action label="Apply Credit" i18n-label (onClick)="createCredit($event)"
62 group="Credits" i18n-group [disableOnRows]="notOneSelectedActiveRow">
63 </eg-grid-toolbar-action>
64 <eg-grid-toolbar-action label="Allocate to Fund" i18n-label (onClick)="allocateToFund($event)"
65 group="Allocations" i18n-group [disableOnRows]="notOneSelectedActiveRow">
66 </eg-grid-toolbar-action>
67 <eg-grid-toolbar-action label="View Credits" i18n-label (onClick)="openTransactionsDialog($event, 'credits')"
68 group="Credits" i18n-groups [disableOnRows]="notOneSelectedRow">
69 </eg-grid-toolbar-action>
70 <eg-grid-toolbar-action label="View Allocations" i18n-label (onClick)="openTransactionsDialog($event, 'allocations')"
71 group="Allocations" i18n-group [disableOnRows]="notOneSelectedRow">
72 </eg-grid-toolbar-action>
74 <ng-template #nameTmpl let-row="row">
75 <a href="" (click)="openTransactionsDialog([row], 'credits'); false">
79 <eg-grid-column path="name" [cellTemplate]="nameTmpl"></eg-grid-column>
80 <eg-grid-column path="owner"></eg-grid-column>
81 <eg-grid-column path="code"></eg-grid-column>
82 <eg-grid-column path="currency_type"></eg-grid-column>
83 <eg-grid-column path="active"></eg-grid-column>
84 <eg-grid-column path="balance" datatype="money" [filterable]="false" [sortable]="false"
85 i18n-label label="Balance"></eg-grid-column>
86 <eg-grid-column path="total_credits" datatype="money" [filterable]="false" [sortable]="false"
87 i18n-label label="Total Credits"></eg-grid-column>
88 <eg-grid-column path="total_allocations" datatype="money" [filterable]="false" [sortable]="false"
89 i18n-label label="Total Allocations"></eg-grid-column>
90 <eg-grid-column path="id" [hidden]="true"></eg-grid-column>
95 <eg-fm-record-editor #editDialog idlClass="{{idlClass}}"
96 [fieldOptions]="fieldOptions"
97 [fieldOrder]="fieldOrder"
98 [defaultNewRecord]="defaultNewRecord"
99 [preloadLinkedValues]="true"
100 [readonlyFields]="readonlyFields">
101 </eg-fm-record-editor>
103 <eg-funding-source-transactions-dialog #fundingSourceTransactionsDialog></eg-funding-source-transactions-dialog>
105 <eg-confirm-dialog #confirmDel
106 dialogTitle="Delete?" i18n-dialogTitle
107 dialogBody="Delete funding source?" i18n-dialogBody>
109 <eg-alert-dialog #alertDialog
111 dialogBody="Funding source cannot deleted as it is in use">
115 <eg-fm-record-editor #applyCreditDialog idlClass="acqfscred">
116 </eg-fm-record-editor>
117 <eg-fm-record-editor #allocateToFundDialog idlClass="acqfa"
118 [fieldOptions]="{fund:{linkedSearchConditions:{'active':'t'},preloadLinkedValues:true}}">
119 </eg-fm-record-editor>