bd33b07204d81432e96ecc54b2e0bf22064e54fa
[working/Evergreen.git] /
1 <div *ngIf="showLinkLimitSets">
2     <div class="col-lg-15 bg-info d-flex justify-content-center"><h3 class="modal-title mt-3 mb-3" i18n>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" i18n>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}}" i18n>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}}" i18n>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" i18n>Remove
41                     </button>
42                 </div>
43             </div>
44         </ng-container>
45     </ng-container>
46     <div class="input-group mt-3 col-md-12">
47         <div class="input-group-prepend">
48             <div class="input-group-text" i18n>Circ Limit Set Name</div>
49             <eg-combobox 
50                 name="linkedLimitName"
51                 idlClass="ccls" 
52                 idlField="name" 
53                 (onChange)="onChange($event)">
54             </eg-combobox>
55         </div>
56         <div class="input-group-append">
57             <button
58                 type="button"
59                 class="btn btn-info"
60                 (click)="addLinkedSet()"
61                 i18n-title title="Add" i18n>Add
62             </button>
63         </div>
64     </div>
65 </div>