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