LP1830432 Org family renders checkboxes horizontally
authorBill Erickson <berickxx@gmail.com>
Tue, 9 Jul 2019 15:46:02 +0000 (11:46 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 10 Jul 2019 17:55:47 +0000 (13:55 -0400)
Consistent with the original layout of the org-select + checkboxes,
render the org family selector with checkboxes stacked vertically
along the right of the selector instead of below it.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>

Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.html

index b9bdf02..5ffaf5a 100644 (file)
@@ -1,26 +1,31 @@
-<div class="input-group">
-  <div class="input-group-prepend">
-    <span class="input-group-text">{{labelText}}</span>
+<form class="form-inline" [formGroup]="familySelectors">
+  <div class="input-group">
+    <div class="input-group-prepend">
+      <span class="input-group-text">{{labelText}}</span>
+    </div>
+    <eg-org-select [domId]="domId"
+      (onChange)="orgOnChange($event)"
+      [limitPerms]="limitPerms"
+      [initialOrgId]="selectedOrgId">
+    </eg-org-select>
   </div>
-  <eg-org-select [domId]="domId"
-    (onChange)="orgOnChange($event)"
-    [limitPerms]="limitPerms"
-    [initialOrgId]="selectedOrgId">
-  </eg-org-select>
-</div>
-<form class="pl-2" [formGroup]="familySelectors">
-  <div class="form-check" *ngIf="!hideAncestorSelector">
-    <input type="checkbox"
-      formControlName="includeAncestors"
-      (blur)="propagateTouch()"
-      class="form-check-input" id="{{domId}}-include-ancestors">
-    <label class="form-check-label" for="{{domId}}-include-ancestors" i18n>+ Ancestors</label>
-  </div>
-  <div class="form-check" *ngIf="!hideDescendantSelector">
-    <input type="checkbox"
-      formControlName="includeDescendants"
-      (blur)="propagateTouch()"
-      class="form-check-input" id="{{domId}}-include-descendants">
-    <label class="form-check-label" for="{{domId}}-include-descendants" i18n>+ Descendants</label>
+
+  <!-- stack the checkboxes -->
+  <div class="ml-2 d-flex flex-column align-items-start">
+    <div class="form-check" *ngIf="!hideAncestorSelector">
+      <input type="checkbox"
+        formControlName="includeAncestors"
+        (blur)="propagateTouch()"
+        class="form-check-input" id="{{domId}}-include-ancestors">
+      <label class="form-check-label" for="{{domId}}-include-ancestors" i18n>+ Ancestors</label>
+    </div>
+    <div class="form-check" *ngIf="!hideDescendantSelector">
+      <input type="checkbox"
+        formControlName="includeDescendants"
+        (blur)="propagateTouch()"
+        class="form-check-input" id="{{domId}}-include-descendants">
+      <label class="form-check-label" for="{{domId}}-include-descendants" i18n>+ Descendants</label>
+    </div>
   </div>
 </form>
+