From: Terran McCanna Date: Tue, 27 Dec 2022 17:37:06 +0000 (-0500) Subject: PINES - fix merge issues with OPAC notification prefs page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a8d9b9f2ef4dba55fb098304a5baf35ae4ab4ea8;p=evergreen%2Fpines.git PINES - fix merge issues with OPAC notification prefs page Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs_notify.tt2 index 00f324f954..688e629a11 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs_notify.tt2 @@ -2,15 +2,11 @@ WRAPPER "opac/parts/myopac/base.tt2"; myopac_page = "prefs_notify"; parent="prefs"; - prefs_page = 'prefs_notify'; - can_call_action_trigger = 'true' %] + prefs_page = 'prefs_notify' +%]

[% l('Notification Preferences') %]

[% l("PINES Account Tips") %]
-
- [% setting = 'opac.hold_notify' %] - [% IF ctx.affectedChgs %] [% # get hash of sms cariers keyed by id: @@ -65,78 +61,109 @@ [% setting = 'opac.hold_notify' %] - - - - - - [%- IF allow_phone_notifications == 'true'; - setting = 'opac.hold_notify'; - -%] - - [% phone_label = l('Notify by Phone by default when a hold is ready for pickup?') %] - - - - - - [% setting = 'opac.default_phone' %] - - - - - - - [%- END %] - [%- IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1; - setting = 'opac.hold_notify'; - -%] - - [% sms_label = l('Notify by Text by default when a hold is ready for pickup?') %] - - - - - - - [% l('Default Mobile Carrier') %] - [% INCLUDE "opac/parts/sms_carrier_selector.tt2" sms_carrier_hide_label="true" %] - - [% setting = 'opac.default_sms_notify' %] - - - - - [% l('Hint: use the full 10 digits of your phone number, no spaces, no dashes'); %] - - - [% END %] - [% FOR optin IN ctx.opt_in_settings %] - - - - - - - [% END %] - - + + + + + [% IF ctx.updated_user_settings %] + + [% END %] + + [% setting = 'opac.hold_notify' %] + + [%# WCAG insists that labels for checkboxes contain the input + or directly follow the input, which would not look right + with the rest of the table. As an alternative, we can + repeat the label as a title attr. + http://www.w3.org/TR/WCAG20-TECHS/H44.html %] + [% email_label = l('Notify by Email by default when a hold is ready for pickup?') %] + + + + + [%- IF allow_phone_notifications == 'true'; + setting = 'opac.hold_notify'; + -%] + + [% phone_label = l('Notify by Phone by default when a hold is ready for pickup?') %] + + + + [% setting = 'opac.default_phone' %] + + + + + [%- END %] + [%- IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1; + setting = 'opac.hold_notify'; + -%] + + [% sms_label = l('Notify by Text by default when a hold is ready for pickup?') %] + + + + + + + + [% setting = 'opac.default_sms_notify' %] + + + + + + + + [% END %] + [% FOR optin IN ctx.opt_in_settings %] + + + + + [% END %] + +
+
+ [% l('Account Successfully Updated') %] +
+
+ +
+ +
+ +
+ +
[% l('Default Mobile Carrier') %][% INCLUDE "opac/parts/sms_carrier_selector.tt2" sms_carrier_hide_label="true" %]
+ + [% IF ctx.user_setting_map.$setting; %] + [% l('Send Test Text Message') %]
+ [% l('Hint: use the full 10 digits of your phone #, no spaces, no dashes'); %] + [% END %] +
+ +
[% END %] -[% END %] - - +[% END %] \ No newline at end of file