Bugzilla – Attachment 48970 Details for
Bug 16046
Use Font Awesome icons on patron edit pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16046 - Use Font Awesome icons on patron edit pages
Bug-16046---Use-Font-Awesome-icons-on-patron-edit-.patch (text/plain), 5.02 KB, created by
Owen Leonard
on 2016-03-10 16:54:32 UTC
(
hide
)
Description:
Bug 16046 - Use Font Awesome icons on patron edit pages
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-03-10 16:54:32 UTC
Size:
5.02 KB
patch
obsolete
>From 21431e8fa694a313a7a53fe469fc85d2f417700d Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 10 Mar 2016 11:43:32 -0500 >Subject: [PATCH] Bug 16046 - Use Font Awesome icons on patron edit pages >Content-Type: text/plain; charset="utf-8" > >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. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 ++-- > koha-tmpl/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 497c1a7..a103bcb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -928,9 +928,9 @@ > (<label class="yesno" for="[% patron_attribute.form_id %]_password">Password:</label> <input type="password" maxlength="64" value="[% patron_attribute.password %]" > id="[% patron_attribute.form_id %]_password" name="[% patron_attribute.form_id %]_password" />) > [% END %] >- <a href="#" class="clear-field" onclick="clear_entry(this); return false;">Clear</a> >+ <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> > [% IF ( patron_attribute.repeatable ) %] >- <a href="#" class="clone-field" onclick="clone_entry(this); return false;">New</a> >+ <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> > [% END %] > </li> > [% 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 3bd2bf5..2d8d5cf 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('<a href="#" title="Delete" class="delete clear-field" onclick="del_attributes(this);return false;">Delete</a>'); >+ $(li_clone).append('<a href="#" title="Delete" class="delete" onclick="del_attributes(this);return false;"><i class="fa fa-fw fa-trash"></i> Delete</a>'); > } > $(li_clone).find('select[name="patron_attributes"]').change(function() { > updateAttrValues(this); >@@ -338,7 +338,7 @@ > [% END %] > [% IF ( field.type == 'date' ) %] > <input type="text" name="[% field.name %]" id="[% field.name %]" value="" size="10" maxlength="10" readonly="readonly" class="datepicker" /> >- <a href="#" class="clear-field" onclick="clearDate('[% field.name %]');return false;">Clear</a> >+ <a href="#" onclick="clearDate('[% field.name %]');return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> > [% END %] > [% IF field.mandatory %] > <span class="required">Required fields cannot be cleared</span> >@@ -356,7 +356,7 @@ > </label> > <input type="checkbox" title="check to delete this field" name="disable_input" value="attr0_value" /> > <span class="patron_attributes_value"></span> >- <a href="#" class="clone-field" title="Add an attribute" onclick="add_attributes(); return false;">New</a> >+ <a href="#" title="Add an attribute" onclick="add_attributes(); return false;"><i class="fa fa-fw fa-plus"></i> New</a> > <span class="information_category hint" style="width:25%;float:right;"></span> > </li> > [% END %] >-- >2.1.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 16046
:
48970
|
49132