LP1843969 Composite Attribute Entry Defs
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / server / coded-value-maps / composite-new.component.html
1 <div class="row ml-2 mt-4 p-2 border border-secondary" *ngIf="values.pointType">
2   <div class="col-lg-12">
3     <h3 class="text-center" *ngIf="values.pointType=='attr'">
4       Record Attribute
5     </h3>
6     <h3 class="text-center" *ngIf="values.pointType=='bool'">
7       Boolean Operator
8     </h3>
9   </div>
10   <div class="col-lg-12 common-form striped-odd form-validated">
11     <ng-container *ngIf="values.pointType=='attr'">
12       <div class="row mb-1">
13         <div class="col-lg-4">
14           <label id="type" class="col-form-label" i18n>Select Attribute Type:</label>
15         </div>
16         <div class="col-lg-8">
17           <eg-combobox [entries]="attrTypes" [required]="true" aria-labelledby="type"
18             (onChange)="typeChange($event)" placeholder="Attribute Type" i18n-placeholder>
19           </eg-combobox>  
20         </div>
21       </div>
22       <div class="row mb-1">
23         <div class="col-lg-4">
24           <label id="value" class="col-form-label" i18n>Select Value:</label>
25         </div>
26         <div class="col-lg-8">
27           <eg-combobox #valComboBox [entries]="attrVals" [required]="true" aria-labelledby="value"
28             (onChange)="valueChange($event)" placeholder="Value" i18n-placeholder>
29           </eg-combobox>
30         </div>
31       </div>
32     </ng-container>
33     <ng-container *ngIf="values.pointType=='bool'">
34       <div class="row mb-1">
35         <div class="col-lg-4 col-form-label">Operator:</div>
36         <div class="col-lg-8">
37           <select class="form-control" [(ngModel)]="values.boolOp">
38             <option value='AND' i18n>AND</option>
39             <option value='OR' i18n>OR</option>
40             <option value='NOT' i18n>NOT</option>
41           </select>
42         </div>
43       </div>
44     </ng-container>
45   </div>
46 </div>
47   
48