LP1830432: Make the org-family-select reusable
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / share / org-family-select / org-family-select.component.html
1 <div class="input-group">
2   <div class="input-group-prepend">
3     <span class="input-group-text">{{labelText}}</span>
4   </div>
5   <eg-org-select [domId]="domId"
6     (onChange)="orgOnChange($event)"
7     [limitPerms]="limitPerms"
8     [initialOrgId]="selectedOrgId">
9   </eg-org-select>
10 </div>
11 <form class="pl-2" [formGroup]="familySelectors">
12   <div class="form-check" *ngIf="!hideAncestorSelector">
13     <input type="checkbox"
14       formControlName="includeAncestors"
15       (blur)="registerOnTouched()"
16       class="form-check-input" id="{{domId}}-include-ancestors">
17     <label class="form-check-label" for="{{domId}}-include-ancestors" i18n>+ Ancestors</label>
18   </div>
19   <div class="form-check" *ngIf="!hideDescendantSelector">
20     <input type="checkbox"
21       formControlName="includeDescendants"
22       (blur)="registerOnTouched()"
23       class="form-check-input" id="{{domId}}-include-descendants">
24     <label class="form-check-label" for="{{domId}}-include-descendants" i18n>+ Descendants</label>
25   </div>
26 </form>