Bug 7540 [3.6.x] - add id values to the legends in the patron entry form

This adds the following IDs to the legends in the patron entry form:
 main_address_lgd contact_lgd alt_address_lgd alt_contact_lgd
 library_management_lgd library_setup_lgd opac_staff_login_lgd
 patron_messaging_prefs_lgd

With these in place, then jquery like:
$(document).ready(function(){
        $('#main_address_lgd').text('Postal Address');
        $('#alt_address_lgd').text('Residential Address');
});
in intranetuserjs can be used to rename things to taste.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Robin Sheat 2012-02-15 12:34:30 +13:00 committed by Jared Camins-Esakov
parent 49e173a76d
commit 4e7118f016
1 changed files with 9 additions and 9 deletions

View File

@ -179,7 +179,7 @@
[% IF ( step_1 ) %]
<fieldset class="rows" id="memberentry_identity">
<legend>[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
<legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
<ol>
[% UNLESS ( I ) %]
[% IF ( title_cgipopup ) %]
@ -399,7 +399,7 @@
[% END %]
<fieldset class="rows">
<legend>Main address</legend><ol>
<legend id="main_address_lgd">Main address</legend><ol>
<li>
[% IF ( mandatorystreetnumber ) %]
<label for="streetnumber" class="required">
@ -524,7 +524,7 @@
</ol>
</fieldset>
<fieldset class="rows" id="memberentry_contact">
<legend>Contact</legend><ol>
<legend id="contact_lgd">Contact</legend><ol>
<li>
[% IF ( mandatoryphone ) %]
<label for="phone" class="required">
@ -620,7 +620,7 @@
[% IF ( step_6 ) %]
<fieldset class="rows" id="memberentry_address">
<legend>Alternate address</legend><ol>
<legend id="alt_address_lgd">Alternate address</legend><ol>
<li>
[% IF ( mandatoryB_address ) %]
<label for="B_address" class="required">
@ -739,7 +739,7 @@
[% END %]
[% IF ( step_2 ) %]
<fieldset class="rows" id="memberentry_altaddress">
<legend>Alternate Contact</legend><ol>
<legend id="alt_contact_lgd">Alternate Contact</legend><ol>
<li>
[% IF ( mandatoryaltcontactsurname ) %]
<label for="altcontactsurname" class="required">
@ -865,7 +865,7 @@
[% IF ( step_3 ) %]
<fieldset class="rows" id="memberentry_library_management">
<legend>Library Management</legend><ol>
<legend id="library_management_lgd">Library Management</legend><ol>
<li> [% IF ( mandatorycardnumber ) %]
<label for="cardnumber" class="required">
[% ELSE %]
@ -948,7 +948,7 @@
</ol>
</fieldset>
<fieldset class="rows" id="memberentry_subscription">
<legend>Library set-up</legend><ol>
<legend id="library_setup_lgd">Library set-up</legend><ol>
<li>
[% IF ( mandatorydateenrolled ) %]
<label for="dateenrolled" class="required">
@ -1034,7 +1034,7 @@
</ol>
</fieldset>
<fieldset class="rows" id="memberentry_userid">
<legend>OPAC/Staff Login</legend><ol>
<legend id="opac_staff_login_lgd">OPAC/Staff Login</legend><ol>
<li>
[% IF ( mandatoryuserid ) %]
<label for="userid" class="required">
@ -1240,7 +1240,7 @@
</script>
[% END %]
<input type="hidden" name="setting_messaging_prefs" value="1" />
<legend>Patron messaging preferences</legend>
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
[% IF type_only %]
<i>If no preferences are selected, the default preferences for the category chosen will be applied on save, otherwise your selection here is saved</i>
[% END %]