LP1889916 SMS Carrier does not include region in borrower edit screen
authorGarry Collum <gcollum@gmail.com>
Fri, 13 Aug 2021 17:41:02 +0000 (13:41 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 7 Apr 2023 14:12:34 +0000 (10:12 -0400)
Displays the region next to the carrier name and in the borrower edit and
create screens.  Also sorts the carrier names alphabetically.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/templates/staff/circ/patron/t_edit.tt2

index ebafd08..540c0be 100644 (file)
@@ -854,7 +854,7 @@ within the "form" by name for validation.
         name="default_sms_text_carrier"
         ng-model="user_settings['opac.default_sms_carrier']"
         ng-required="user_settings['opac.default_sms_notify']"
-        ng-options="c.id() as c.name() for c in sms_carriers"
+        ng-options="c.id() as c.name() + ' (' + c.region() + ')' for c in sms_carriers | orderBy:'name()'"
         ng-blur="handle_field_changed(user_settings, 'opac.default_sms_carrier')">
         <option value="">Select a Carrier</option>
       </select>