Bugzilla – Attachment 111648 Details for
Bug 26534
Add a Font Awesome icon to help identify staff patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26534: Add Font Awesome icon only for staff patrons
Bug-26534-Add-Font-Awesome-icon-only-for-staff-pat.patch (text/plain), 2.94 KB, created by
Katrin Fischer
on 2020-10-14 22:17:47 UTC
(
hide
)
Description:
Bug 26534: Add Font Awesome icon only for staff patrons
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-10-14 22:17:47 UTC
Size:
2.94 KB
patch
obsolete
>From b67d9e6b1ba0e009f5f1bbd4e11efbe61af7c30d Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 25 Sep 2020 09:43:54 +0200 >Subject: [PATCH] Bug 26534: Add Font Awesome icon only for staff patrons > >In patron pages it would help to see an icon indicating that this is a staff patron (having permission to access staff interface). >This may avoid wrong patron deletion or permission mistakes. >I propose the shield Font Awesome icon and a grey background > >Patch also shows patron name and cardnumber aligned center instead of right. >Patch adds to 'patroninfo' div a class 'staffgrade' or 'normalgrade' to >allow more styling depending on patron beeing staff or not. > >Test plan: >Compare display between a patron having staff interface access and one without permissions. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 9 ++++++++- > koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 10 +++++++++- > 2 files changed, 17 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 57c0d58cd1..df7a2558a3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -1380,11 +1380,12 @@ dd { > margin-top: -.5em; > > h5 { >+ text-align: center; > border-right: 1px solid #B9D8D9; > margin-bottom: 0; > padding-bottom: .5em; > padding-left: -.5em; >- padding-top: .3em; >+ padding-top: .5em; > > &:empty { > border-right: 0; >@@ -1413,6 +1414,12 @@ dd { > border-right: 1px solid #B9D8D9; > width: 100%; > } >+ >+ + .staffgrade { >+ h5 { >+ background-color: #EEE; >+ } >+ } > } > > .patroninfo-section { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index a12be5e07f..ec23e4f3b4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -2,7 +2,15 @@ > [% USE KohaDates %] > [% PROCESS 'member-display-address-style.inc' %] > [% IF ( patron.borrowernumber ) %] >-<div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5> >+[% SET patrongrade = ( patron.has_permission({ 'catalogue' => 1 }) ) ? 'staffgrade' : 'normalgrade' %] >+<div class="patroninfo [% patrongrade | html %]"> >+ >+<h5> >+ [% IF ( patrongrade == 'staffgrade' ) %] >+ <i class="fa fa-shield" title="Staff patron"></i> >+ [% END %] >+ [% INCLUDE 'patron-title.inc' %] >+</h5> > > [% IF Koha.Preference('showLastPatron') %] > <input type="hidden" id="hiddenborrowernumber" value="[% patron.borrowernumber | html %]"> >-- >2.11.0
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 26534
:
110717
|
110718
|
110738
|
110739
|
110749
|
110750
|
110753
|
110754
|
110960
|
110972
|
110995
|
111185
|
111186
|
111187
|
111188
|
111189
| 111648 |
111649
|
111650
|
111651
|
111652
|
111685