From 6a4d4df70bc7e517476539356ac2dc77bc21ee89 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 10 Mar 2016 11:43:32 -0500 Subject: [PATCH] Bug 16046 - Use Font Awesome icons on patron edit pages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch updates links in the patron edit and batch patron modification templates to use Font Awesome icons instead of background-images. To test you must have ExtendedPatronAttributes enabled and at least one repeatable attribute defined. - Apply the patch and edit any patron record. - In the section for editing attributes and identifiers, check the styling and behavior of the "Clear" and "New" links. - In Tools -> Batch patron modification, load a batch of patron records. - In the "Edit" form, check the style and behavior of the "Clear" link for date inputs. - Test the "New" and "Delete" links for patron attributes. Signed-off-by: Christian Stelzenmüller Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 ++-- .../intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 6 +++--- 2 files changed, 5 insertions(+), 5 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 05153a9353..cfb1c1b9ac 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1064,9 +1064,9 @@ function select_user(borrowernumber, borrower) { ( ) [% END %] - Clear + Clear [% IF ( patron_attribute.repeatable ) %] - New + New [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 3bd2bf5a56..2d8d5cfeba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -85,7 +85,7 @@ var li_node = $("li.attributes:last"); var li_clone = $(li_node).clone(); if ( $(li_clone).find("a.delete").length == 0 ) { - $(li_clone).append('Delete'); + $(li_clone).append(' Delete'); } $(li_clone).find('select[name="patron_attributes"]').change(function() { updateAttrValues(this); @@ -338,7 +338,7 @@ [% END %] [% IF ( field.type == 'date' ) %] - Clear + Clear [% END %] [% IF field.mandatory %] Required fields cannot be cleared @@ -356,7 +356,7 @@ - New + New [% END %] -- 2.39.5