Bugzilla – Attachment 7648 Details for
Bug 7540
Add ids to the legend elements to make it easier to tweak with javascript
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7540 - add id values to the legends in the patron entry form
Bug-7540---add-id-values-to-the-legends-in-the-pat.patch (text/plain), 4.54 KB, created by
Robin Sheat
on 2012-02-14 23:37:47 UTC
(
hide
)
Description:
Bug 7540 - add id values to the legends in the patron entry form
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2012-02-14 23:37:47 UTC
Size:
4.54 KB
patch
obsolete
>From d6e0dd0b97972478bd435d9510395a69d2b49d9b Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Wed, 15 Feb 2012 12:34:30 +1300 >Subject: [PATCH] Bug 7540 - 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. >--- > .../prog/en/modules/members/memberentrygen.tt | 18 +++++++++--------- > 1 files changed, 9 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 34fef89..7377ec6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -184,7 +184,7 @@ > [% IF ( step_1 ) %] > [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] > <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 ) %] > [% UNLESS notitle %] >@@ -424,7 +424,7 @@ > [% END %] > [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] > <fieldset class="rows"> >- <legend>Main address</legend><ol> >+ <legend id="main_address_lgd">Main address</legend><ol> > [% UNLESS nostreetnumber %] > <li> > [% IF ( mandatorystreetnumber ) %] >@@ -566,7 +566,7 @@ > > [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] > <fieldset class="rows" id="memberentry_contact"> >- <legend>Contact</legend><ol> >+ <legend id="contact_lgd">Contact</legend><ol> > [% UNLESS nophone %] > <li> > [% IF ( mandatoryphone ) %] >@@ -675,7 +675,7 @@ > > [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] > <fieldset class="rows" id="memberentry_address"> >- <legend>Alternate address</legend><ol> >+ <legend id="alt_address_lgd">Alternate address</legend><ol> > [% UNLESS noB_address %] > <li> > [% IF ( mandatoryB_address ) %] >@@ -814,7 +814,7 @@ > [% IF ( step_2 ) %] > [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] > <fieldset class="rows" id="memberentry_altaddress"> >- <legend>Alternate Contact</legend><ol> >+ <legend id="alt_contact_lgd">Alternate Contact</legend><ol> > [% UNLESS noaltcontactsurname %] > <li> > [% IF ( mandatoryaltcontactsurname ) %] >@@ -959,7 +959,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> > [% UNLESS nocardnumber %] > <li> [% IF ( mandatorycardnumber ) %] > <label for="cardnumber" class="required"> >@@ -1051,7 +1051,7 @@ > </fieldset> > [% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %] > <fieldset class="rows" id="memberentry_subscription"> >- <legend>Library set-up</legend><ol> >+ <legend id="library_setup_lgd">Library set-up</legend><ol> > [% UNLESS nodateenrolled %] > <li> > [% IF ( mandatorydateenrolled ) %] >@@ -1148,7 +1148,7 @@ > > [% UNLESS nouserid && nopassword %] > <fieldset class="rows" id="memberentry_userid"> >- <legend>OPAC/Staff Login</legend><ol> >+ <legend id="opac_staff_login_lgd">OPAC/Staff Login</legend><ol> > [% UNLESS nouserid %] > <li> > [% IF ( mandatoryuserid ) %] >@@ -1442,7 +1442,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 %] >-- >1.7.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7540
:
7648
|
7649
|
7675