1 <eg-staff-banner bannerText="Org Unit Type Configuration" i18n-bannerText>
4 <ng-template #editStrTmpl i18n>Org Unit Type Update Succeeded</ng-template>
5 <eg-string #editString [template]="editStrTmpl"></eg-string>
7 <ng-template #createStrTmpl i18n>Org Unit Type Succeessfully Created</ng-template>
8 <eg-string #createString [template]="createStrTmpl"></eg-string>
10 <ng-template #errorStrTmpl i18n>Org Unit Type Update Failed</ng-template>
11 <eg-string #errorString [template]="errorStrTmpl"></eg-string>
13 <eg-confirm-dialog #delConfirm
14 i18n-dialogTitle i18n-dialogBody
15 dialogTitle="Confirm Delete"
16 dialogBody="Delete Org Unit Type {{selected ? selected.label : ''}}?">
19 <eg-fm-record-editor #editDialog idlClass="aout" readonlyFields="depth,parent">
20 </eg-fm-record-editor>
23 <div class="col-lg-4">
24 <h3 i18n>Org Unit Types</h3>
25 <eg-tree [tree]="tree" (nodeClicked)="nodeClicked($event)"></eg-tree>
27 <div class="col-lg-8">
28 <h3 i18n class="mb-3">Selected Org Unit Type</h3>
29 <ng-container *ngIf="!selected">
30 <div class="alert alert-info font-italic" i18n>
31 Select an org unit type from the tree on the left.
34 <div *ngIf="selected" class="common-form striped-even">
36 <div class="col-lg-3">
37 <label i18n>Actions for Selected: </label>
39 <div class="col-lg-9">
40 <button class="btn btn-info mr-2" (click)="edit()" i18n>Edit</button>
41 <button class="btn btn-info mr-2" (click)="addChild()" i18n>Add Child</button>
42 <button class="btn btn-warning mr-2" (click)="remove()" i18n>Delete</button>
46 <!-- TODO: use FmRecordEditPaneComponent once it exists -->
47 <div class="col-lg-4">
48 <label i18n>Name: </label>
50 <div class="col-lg-8 font-weight-bold">
51 {{selected.callerData.name()}}
55 <div class="col-lg-4">
56 <label i18n>Label: </label>
58 <div class="col-lg-8 font-weight-bold">
59 {{selected.callerData.opac_label()}}
63 <div class="col-lg-4">
64 <label i18n>Can Have Users: </label>
66 <div class="col-lg-8 font-weight-bold">
67 <!-- TODO: use <eg-bool/> once merged-->
68 {{selected.callerData.can_have_users() == 't'}}
72 <div class="col-lg-4">
73 <label i18n>Can Have Volumes: </label>
75 <div class="col-lg-8 font-weight-bold">
76 <!-- TODO: use <eg-bool/> once merged-->
77 {{selected.callerData.can_have_vols() == 't'}}
81 <div class="col-lg-4">
82 <label i18n>Depth: </label>
84 <div class="col-lg-8 font-weight-bold">
85 {{selected.callerData.depth()}}