LP1904036 Org select name option and improved domId
authorBill Erickson <berickxx@gmail.com>
Wed, 17 Mar 2021 21:06:32 +0000 (17:06 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 29 Sep 2022 14:19:07 +0000 (07:19 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts

index 0a662c0..02ed756 100644 (file)
@@ -12,7 +12,8 @@
 
   <input type="text" 
     class="form-control"
-    [attr.id]="domId.length ? domId : null"
+    id="{{domId}}"
+    [name]="name"
     [placeholder]="placeholder"
     [disabled]="disabled"
     [(ngModel)]="selected" 
index 93dee29..746c87d 100644 (file)
@@ -59,6 +59,8 @@ export class OrgSelectComponent implements OnInit {
     // ID to display in the DOM for this selector
     @Input() domId = 'eg-org-select-' + OrgSelectComponent.domId++;
 
+    @Input() name = '';
+
     // Org unit field displayed in the selector
     @Input() displayField = 'shortname';