1 <eg-staff-banner bannerText="Custom Org Unit Trees" i18n-bannerText>
4 <ng-template #successStrTmpl i18n>Update Succeeded</ng-template>
5 <eg-string #successString [template]="successStrTmpl"></eg-string>
7 <ng-template #updateFailedStrTmpl i18n>Update Failed</ng-template>
8 <eg-string #updateFailedString [template]="updateFailedStrTmpl"></eg-string>
10 <eg-confirm-dialog #delConfirm
11 i18n-dialogTitle i18n-dialogBody
12 dialogTitle="Confirm Delete"
13 dialogBody="Delete Org Unit {{selected ? selected.label : ''}}?">
16 <eg-custom-org-unit-trees-dialog #moveNodeElsewhereDialog>
17 </eg-custom-org-unit-trees-dialog>
20 To add new nodes to the custom tree, left-click on the node you wish to add on the left and then left-click on a node on the right that will serve as that node's parent. You can then press the "Copy Selected Org Units to Custom Tree" button. You may need to expand the custom tree to see the placement. Changes to the custom org tree will require a web server (Apache) reload by your system administrator before taking effect.
22 <div class="row row-cols-auto org-unit-types-row">
23 <div class="col org-unit-types-col-aside">
24 <div class="card bg-light rounded p-3" >
25 <h3 i18n>Full Org Unit Tree</h3>
27 [showSelectors]="true"
28 [disableRootSelector]="true"
29 [toggleOnClick]="true"
31 (nodeClicked)="nodeClicked($event)"
32 (nodeChecked)="nodeChecked($event)">
34 <button type="button" class="btn btn-normal btn-sm label-with-material-icon" [disabled]="!isCopyNodesAllowed()" (click)="copyNodes()">
35 <span class="material-icons mat-icon-in-button" aria-hidden="true">content_copy</span>
36 <span i18n>Copy Selected Org Units to Custom Tree</span>
42 <div class="col org-unit-types-col-aside p-3">
44 <span i18n>Custom Org Unit Tree (Active)</span>
45 <button type="button" class="btn btn-link p-0 ms-2" *ngIf="active" (click)="active = !active" i18n>Deactivate Tree</button>
48 <span i18n>Custom Org Unit Tree (Inactive)</span>
49 <button type="button" class="btn btn-link p-0 ms-2" *ngIf="!active" (click)="active = !active" i18n>Activate Tree</button>
52 <ng-template #selectedRowButtons let-node>
53 <div *ngIf="node.selected && custom_tree.selectedNodes().length === 1">
54 <button type="button" class="btn btn-link lh-1 py-1 px-0 text-dark"
55 [disabled]="moveNodeUpDisabled" (click)="moveNodeUp(node)"
56 i18n-title title="Move Up" i18n-aria-label aria-label="Move Up">
57 <span class="material-icons" aria-hidden="true">arrow_upward</span>
59 <button type="button" class="btn btn-link lh-1 py-1 px-0 text-dark"
60 [disabled]="moveNodeDownDisabled" (click)="moveNodeDown(node)"
61 i18n-title title="Move Down" i18n-aria-label aria-label="Move Down">
62 <span class="material-icons" aria-hidden="true">arrow_downward</span>
64 <button type="button" class="btn btn-link lh-1 py-1 px-0 text-dark"
65 [disabled]="moveNodeElsewhereDisabled" (click)="moveNodeElsewhere(node)"
66 i18n-title title="Move Elsewhere" i18n-aria-label aria-label="Move Elsewhere">
67 <span class="material-icons" aria-hidden="true">arrow_forward</span>
69 <button type="button" class="btn btn-link btn-destroy lh-1 py-1 px-0"
70 [disabled]="!isDeleteNodesAllowed()" (click)="deleteNode(node)"
71 i18n-title title="Delete" i18n-aria-label aria-label="Delete">
72 <span class="material-icons" aria-hidden="true">delete</span>
77 [showSelectors]="true"
78 [disableRootSelector]="false"
79 [toggleOnClick]="true"
81 (nodeClicked)="custom_nodeClicked($event)"
82 (nodeChecked)="custom_nodeChecked($event)"
83 [rowTrailingTemplate]="selectedRowButtons">
85 <button type="button" class="btn btn-normal btn-sm label-with-material-icon" (click)="applyChanges()">
86 <span class="material-icons mat-icon-in-button" aria-hidden="true">save</span>
87 <span i18n>Save Changes</span>
89 <button type="button" class="btn btn-destroy btn-sm label-with-material-icon" [disabled]="!isDeleteNodesAllowed()" (click)="deleteSelectedNodes()">
90 <span class="material-icons mat-icon-in-button" aria-hidden="true">delete</span>
91 <span i18n>Delete Selected</span>