From b6a867cec999c0a1c4380af590bfa69d65ee4f76 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Tue, 23 Aug 2022 19:47:00 +0000 Subject: [PATCH] LP 1944602 Bootstrap Opac: Address alignment Fixes the alignment of patron addresses in the Bootstap opac, if the patron as more than one address. Two addresses will now display side-by-side in a row, except on smaller screens. To test: 1. To fully test use patrons with one address, two addresses, and more than two addresses. 2. Login as each patron and notice the mis-aligned addresses. 3. Apply the patch. 4. The addresses should now be displayed side-by-side, two per row. They collapse to one per row on smaller screens. 5. Enable the 'Allow pending addresses' library setting. The editable address displays in the same space as it's non-editable display. Signed-off-by: Garry Collum Signed-off-by: John Amundson Signed-off-by: Galen Charlton --- .../templates-bootstrap/opac/myopac/prefs.tt2 | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 index a7b1aa02dd..e21a757574 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 @@ -224,10 +224,10 @@ - [% IF pending_addr OR edit_addr_id == cur_id; update_addr = pending_addr || addr %] +
[% IF pending_addr %] @@ -276,15 +276,15 @@ - - - - - - - - - +
[% l("Address Type") %][% addr.address_type | html %]
[% l("Street") %][% addr.street1 | html %]
[% l("Street") %][% addr.street2 | html %]
[% l("City") %][% addr.city | html %]
[% l("County") %][% addr.county| html %]
[% l("State") %][% addr.state | html %]
[% l("Country") %][% addr.country | html %]
[% l("Zip") %][% addr.post_code | html %]
+ + + + + + + + [% IF ctx.get_org_setting(ctx.user.home_ou.id, 'opac.allow_pending_address') AND !pending_addr AND edit_addr_id != cur_id %] @@ -296,7 +296,7 @@
[% l("Address Type") %][% addr.address_type | html %]
[% l("Street") %][% addr.street1 | html %]
[% l("Street") %][% addr.street2 | html %]
[% l("City") %][% addr.city | html %]
[% l("County") %][% addr.county| html %]
[% l("State") %][% addr.state | html %]
[% l("Country") %][% addr.country | html %]
[% l("Zip") %][% addr.post_code | html %]
[% l('Edit Address') %]
- + [% END %] -- 2.43.2