From 4e305fe09d0fe2023a267a6fea58715eed90b410 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' --- 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 ce078f28ca..7d8b63e4f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1415,7 +1415,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.28.0