1ca482198654af6100c3b3a5d1e1659d9fa8fffd
[working/Evergreen.git] /
1 <div *ngIf="showLinkLimitSets">
2     <div class="col-lg-15 modal-header bg-info d-flex justify-content-center"><h3 class="modal-title mt-3 mb-3">Linked Limit Sets</h3></div>
3     <ng-container *ngIf="getObjectKeys().length > 0">
4         <ng-container *ngFor="let key of getObjectKeys(); let i = index">
5             <div *ngIf="!linkedSetList[i].isDeleted" class="col-lg-15 d-flex justify-content-center">
6                 <div *ngIf="linkedSetList[i].created" class="col-lg-2 mt-3 mb-3 form-group form-check">
7                     <label for="name">Name</label>
8                     <div class="d-flex justify-content-center">
9                         <span>{{limitSetNames[linkedSetList[i].linkedLimitSet.limit_set()]}}</span>
10                     </div>
11                 </div>
12                 <div *ngIf="linkedSetList[i].created" class="col-lg-2 mt-3 mb-3 form-group form-check">
13                     <label for="{{fallthrough+i}}">Fallthrough</label>
14                     <div class="d-flex justify-content-center">
15                         <input
16                             class="form-check-input"
17                             type="checkbox"
18                             name="{{fallthrough+i}}"
19                             [ngModel]="linkedSetList[i].linkedLimitSet.fallthrough()" 
20                             (ngModelChange)="linkedSetList[i].linkedLimitSet.fallthrough($event); this.emitLimitSet();"/>
21                     </div>
22                 </div>
23                 <div *ngIf="linkedSetList[i].created" class="col-lg-2 mt-3 mb-3 form-group form-check">
24                     <label for="{{active+i}}">Active</label>
25                     <div class="d-flex justify-content-center">
26                         <input
27                         class="form-check-input"
28                         type="checkbox"
29                         [ngModel]="linkedSetList[i].linkedLimitSet.active()"
30                         (ngModelChange)="linkedSetList[i].linkedLimitSet.active($event); this.emitLimitSet();"/>
31                     </div>
32                     
33                 </div>
34                 <div *ngIf="linkedSetList[i].created" class="col-lg-2 mt-3 mb-3 form-group form-check">
35                     <button
36                         type="button"
37                         class="btn btn-warning"
38                         ng-disabled="!linkedSet"
39                         (click)="removeLinkedSet(i)"
40                         i18n-title title="Remove">Remove
41                     </button>
42                 </div>
43             </div>
44         </ng-container>
45     </ng-container>
46     <div class="input-group mt-3">
47         <div class="input-group-prepends col-lg-9">
48             <div class="input-group-text  col-lg-4">
49                 <label for="linkedLimitName" i18n>Circ Limit Set Name </label>
50             </div>
51             <eg-combobox 
52                 name="linkedLimitName"
53                 idlClass="ccls" 
54                 idlField="name" 
55                 (onChange)="onChange($event)">
56             </eg-combobox>
57             <div>
58                 <button
59                     type="button"
60                     class="btn btn-info"
61                     (click)="addLinkedSet()"
62                     i18n-title title="Add">Add
63                 </button>
64             </div>
65         </div>
66     </div>
67 </div>