From b1cf6788c44d16d00bfa72e9505d8e94179d3f31 Mon Sep 17 00:00:00 2001
From: Claire Gravely <claire.gravely@bsz-bw.de>
Date: Fri, 11 Oct 2019 12:23:09 +0000
Subject: [PATCH] Bug 23803: Add Font Awesome icon to cart in staff interface
This patch adds the font awesome icon to the cart in the staff
interface.
To test:
1. Apply patch and run yarn build (see:
https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client)
2. Check that the old cart icon no longer displays and the new font
awesome icon is positioned correctly
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
---
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 5 ++++-
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
index 8f64a5250f..1f0c3274d2 100644
--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
@@ -2243,8 +2243,11 @@ li {
}
#cartmenulink {
- background: transparent url("../img/cart-small.gif") left center no-repeat;
padding-left: 15px;
+
+ i.fa.fa-shopping-cart {
+ padding-right: 7px;
+ }
}
#basketcount {
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
index 6e40fad59a..460fd83f38 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
@@ -23,7 +23,7 @@
</li>
[% IF ( intranetbookbag ) %]
<li>
- <a href="#" id="cartmenulink">Cart<span id="basketcount"></span></a>
+ <a href="#" id="cartmenulink"><i class="fa fa-shopping-cart"></i>Cart<span id="basketcount"></span></a>
</li>
[% END %]
[% IntranetNav | $raw %]
--
2.11.0