Bug 16439: Allow styling to button for upload local cover images (Font Awesome Icons)
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>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
(cherry picked from commit 6003c6b320)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
8ede8c0f0c
commit
88a3c2e1ec
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue