Bugzilla – Attachment 51236 Details for
Bug 16439
Allow styling to button for upload local cover images (Font Awesome Icons)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16439: Allow styling to button for upload local cover images (Font Awesome Icons)
Bug-16439-Allow-styling-to-button-for-upload-local.patch (text/plain), 1.94 KB, created by
Marc Véron
on 2016-05-05 14:18:25 UTC
(
hide
)
Description:
Bug 16439: Allow styling to button for upload local cover images (Font Awesome Icons)
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-05-05 14:18:25 UTC
Size:
1.94 KB
patch
obsolete
>From 7547695a28c5473370d346eda565a62759bffe27 Mon Sep 17 00:00:00 2001 >From: Hector Castro <hector.hecaxmmx@gmail.com> >Date: Wed, 4 May 2016 12:10:41 -0600 >Subject: [PATCH] Bug 16439: Allow styling to button for upload local cover > images (Font Awesome Icons) >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Improve button for upload local cover image with Font Awesome Icon > >To test: >-Set syspref LocalCoverImages and OPACLocalCoverImages to Allow >-A new tab 'Images' appear in bib record detail on Intranet. >-Notice about the button upload. >-Apply the patch and reload the page. >-The button is changed for class=btn btn-mini like the button "edit" > used in items in the tab Holdings >-Also added the Font Awesome icon upload "fa fa-upload" class. > >Button is styled as expected. >Signed-off-by: Marc Véron <veron@veron.ch> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index a1e4efb..ff44e80 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -85,7 +85,7 @@ function verify_images() { > no_images_msg = '<p>' + no_images_msg + '</p>'; > [% IF ( CAN_user_tools_upload_local_cover_images ) %] > var please_upload = _("Please select the image file to upload. %sUpload%s").format( >- "<a class='btn' href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image'>", >+ "<a class='btn btn-mini' href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image'><i class='fa fa-upload' aria-hidden='true'></i> ", > "</a>"); > no_images_msg += "<p id='upload_image'>" + please_upload + '</p>'; > [% END %] >-- >1.7.10.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 16439
:
51216
|
51236
|
51256