From: Dan Scott Date: Wed, 1 Aug 2012 15:12:36 +0000 (-0400) Subject: TPAC: Add config options to hide phone / user prefs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9a28caa4206a3874ecbc613ba0a38d394582c423;p=contrib%2FConifer.git TPAC: Add config options to hide phone / user prefs Libraries using centralized authentication (such as LDAP via open-ils.auth_proxy) will not want to allow users to change their passwords or email addresses. In addition, many libraries do not want to deal with phone notifications. This commit adds preferences to config.tt2 that hide these options from the user. Signed-off-by: Dan Scott Conflicts: Open-ILS/src/templates/opac/myopac/prefs.tt2 Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 Open-ILS/src/templates/opac/parts/place_hold.tt2 --- diff --git a/Open-ILS/src/templates/opac/myopac/prefs.tt2 b/Open-ILS/src/templates/opac/myopac/prefs.tt2 index 4b5c476c0d..85572f4fe7 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs.tt2 @@ -93,7 +93,7 @@ [% l("Password") %] [% l("(not shown)") %] - [%- IF disable_password_change %] + [%- IF disable_password_change == 'true' %] [%- ELSE %] [% l("Change") %] @@ -102,7 +102,7 @@ [% l("Email Address") %] [% ctx.user.email | html %] - [%- IF disable_email_change %] + [%- IF disable_email_change == 'true' %] [%- ELSE %] [% l('Change') %] diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 index 22d9affc3b..d5bc545805 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 @@ -27,7 +27,7 @@ [% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/> - [%- IF allow_phone_notifications %] + [%- IF allow_phone_notifications == 'true' %] [% l('Notify by Phone by default when a hold is ready for pickup?') %] diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index eefeda12a9..16a18c1d40 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -77,7 +77,7 @@ [% l('Yes, by Email') %]
- [%- IF allow_phone_notifications %] + [%- IF allow_phone_notifications == 'true' %] [% l('Yes, by Phone') %]