LP1904036 Org select name option and improved domId
authorBill Erickson <berickxx@gmail.com>
Wed, 17 Mar 2021 21:06:32 +0000 (17:06 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:27 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
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 e0a4e8f..50ea221 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';