Bugzilla – Attachment 7649 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 [3.6.x] - add id values to the legends in the patron entry form
Bug-7540-36x---add-id-values-to-the-legends-in-the.patch (text/plain), 3.95 KB, created by
Robin Sheat
on 2012-02-14 23:47:40 UTC
(
hide
)
Description:
Bug 7540 [3.6.x] - add id values to the legends in the patron entry form
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2012-02-14 23:47:40 UTC
Size:
3.95 KB
patch
obsolete
>From 7d13a54f541dad857a093d2b6d899282441debaf 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 [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. >--- > .../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 47ea6c9..b66b917 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -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 %] >-- >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