</div>[% l("Username") %]
</td>
<td class='light_border'>[% ctx.user.usrname | html %]</td>
- [% IF ctx.username_change_disallowed %]
+ [%- IF ctx.username_change_disallowed %]
<td></td>
- [% ELSE %]
+ [%- ELSE %]
<td class='light_border'><a href='update_username'>[% l("Change") %]</a></td>
- [% END %]
+ [%- END %]
</tr>
<tr>
<td class='color_4 light_border'>[% l("Password") %]</td>
<td class='light_border'>[% l("(not shown)") %]</td>
+ [%- IF disable_password_change == 'true' %]
+ <td></td>
+ [%- ELSE %]
<td class='light_border'><a href='update_password'>[% l("Change") %]</a></td>
+ [%- END %]
</tr>
<tr>
<td class='color_4 light_border'>[% l("Email Address") %]</td>
<td class='light_border'>[% ctx.user.email | html %]</td>
+ [%- IF disable_email_change == 'true' %]
+ <td></td>
+ [%- ELSE %]
<td class='light_border'><a href='update_email'>[% l('Change') %]</a></td>
+ [%- END %]
</tr>
[% IF ctx.user.ident_value %]<tr class="hide_me">
[% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/>
</td>
</tr>
+ [%- IF allow_phone_notifications == 'true' %]
<tr>
<td>[% l('Notify by Phone by default when a hold is ready for pickup?') %]</td>
<td>
[% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
</td>
</tr>
+ [%- END %]
[% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]
<tr>
<td>[% l('Notify by Text by default when a hold is ready for pickup?') %]</td>
reset_password = 'true';
##############################################################################
+# Hide various options from user preferences that you might not want to expose
+# if you rely on centralized authentication via open-ils.auth_proxy, like LDAP
+#
+# Username changes can be disabled by the opac.lock_usernames OU setting.
+##############################################################################
+disable_password_change = 'false';
+disable_email_change = 'false';
+
+##############################################################################
+# Some libraries do not do notifications by phone; if not true, then this
+# hides the user preference for phone notifications as well as the phone
+# notification portion of the hold dialogue
+##############################################################################
+allow_phone_notifications = 'true';
+
+##############################################################################
# Misc. UI Settings
##############################################################################
<blockquote>
[% l('Email Address:') %] <span name="email_address">[% ctx.user.email %]</span>
</blockquote>
+ [%- IF allow_phone_notifications == 'true' %]
<input type="checkbox" name="phone_notify_checkbox"
[% IF ctx.default_phone_notify %]checked="checked"[% END %]/>
[% l('Yes, by Phone') %]<br/>
IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]'
[%- ELSIF ctx.user.day_phone; %] value='[% ctx.user.day_phone | html %]' [% END %]/>
</blockquote>
+ [%- END -%]
[% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]
<input type="checkbox" name="sms_notify_checkbox"
[% IF ctx.default_sms_notify %]checked="checked"[% END %]/>