Bugzilla – Attachment 110718 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.72 KB, created by
Fridolin Somers
on 2020-09-25 07:50:15 UTC
(
hide
)
Description:
Bug 26534: Add Font Awesome icon only for staff patrons
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2020-09-25 07:50:15 UTC
Size:
2.72 KB
patch
obsolete
>From febd5dcc8d21cc27d7fc832fe4034d39e678fad2 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. >--- > 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 9a7470546e..f1efcf4c33 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -1381,11 +1381,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; >@@ -1414,6 +1415,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.27.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