From c1f0aa1e59948ba7c7bedf657e8b798d1fd95ed2 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 30 Sep 2020 10:07:26 +0200 Subject: [PATCH] Bug 26534: Replace 'grade' by 'is-patron' and 'patron-type' Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 9 +++++---- 2 files changed, 6 insertions(+), 5 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 60cf510a5f..a698ec9bf9 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1414,7 +1414,7 @@ dd { width: 100%; } - &.staffgrade { + &.is-staff { h5 { background-color: #EEE; } 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 ef7e5d0ce0..e57e46c4f2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -2,12 +2,13 @@ [% USE KohaDates %] [% PROCESS 'member-display-address-style.inc' %] [% IF ( patron.borrowernumber ) %] -[% SET patrongrade = ( patron.has_permission({ 'catalogue' => 1 }) ) ? 'staffgrade' : 'normalgrade' %] -
+[% SET patron_is_staff = patron.has_permission({ 'catalogue' => 1 }) %] +[% SET patron_type_class = patron_is_staff ? 'is-staff' : 'is-not-staff' %] +
[% IF ( patronimages ) %]
- [% IF ( patrongrade == 'staffgrade' ) %] + [% IF ( patron_is_staff ) %] [% END %] [% INCLUDE 'patron-title.inc' %] @@ -30,7 +31,7 @@
[% ELSE %]
- [% IF ( patrongrade == 'staffgrade' ) %] + [% IF ( patron_is_staff ) %] [% END %] [% INCLUDE 'patron-title.inc' %] -- 2.39.5