From: Garry Collum Date: Tue, 23 Aug 2022 19:47:00 +0000 (+0000) Subject: LP 1944602 Bootstrap Opac: Address alignment X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a6d01ed1c8d04708d5988d23d79dbc14b4bc954b;p=working%2FEvergreen.git 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 --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 index 74bb68c5c1..fbd83ca142 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 @@ -200,10 +200,10 @@ - [% IF pending_addr OR edit_addr_id == cur_id; update_addr = pending_addr || addr %] +
[% IF pending_addr %] @@ -252,15 +252,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 %] @@ -272,7 +272,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 %]