View | Details | Raw Unified | Return to bug 26534
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-1 / +1 lines)
Lines 1415-1421 dd { Link Here
1415
        width: 100%;
1415
        width: 100%;
1416
    }
1416
    }
1417
1417
1418
    &.staffgrade {
1418
    &.is-staff {
1419
        h5 {
1419
        h5 {
1420
            background-color: #EEE;
1420
            background-color: #EEE;
1421
        }
1421
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-5 / +5 lines)
Lines 2-13 Link Here
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% PROCESS 'member-display-address-style.inc' %]
3
[% PROCESS 'member-display-address-style.inc' %]
4
[% IF ( patron.borrowernumber ) %]
4
[% IF ( patron.borrowernumber ) %]
5
[% SET patrongrade = ( patron.has_permission({ 'catalogue' => 1 }) ) ? 'staffgrade' : 'normalgrade' %]
5
[% SET patron_is_staff = patron.has_permission({ 'catalogue' => 1 }) %]
6
<div class="patroninfo [% patrongrade | html %]">
6
[% SET patron_type_class = patron_is_staff ? 'is-staff' : 'is-not-staff' %]
7
<div class="patroninfo [% patron_type_class | html %]">
7
8
8
[% IF ( patronimages ) %]
9
[% IF ( patronimages ) %]
9
    <h5 class="text-center">
10
    <h5 class="text-center">
10
        [% IF ( patrongrade == 'staffgrade' ) %]
11
        [% IF ( patron_is_staff ) %]
11
            <i class="fa fa-shield fa-fw" title="Staff patron"></i>
12
            <i class="fa fa-shield fa-fw" title="Staff patron"></i>
12
        [% END %]
13
        [% END %]
13
        [% INCLUDE 'patron-title.inc' %]
14
        [% INCLUDE 'patron-title.inc' %]
Lines 30-36 Link Here
30
    </div>
31
    </div>
31
[% ELSE %]
32
[% ELSE %]
32
    <h5>
33
    <h5>
33
        [% IF ( patrongrade == 'staffgrade' ) %]
34
        [% IF ( patron_is_staff ) %]
34
            <i class="fa fa-shield fa-fw" title="Staff patron"></i>
35
            <i class="fa fa-shield fa-fw" title="Staff patron"></i>
35
        [% END %]
36
        [% END %]
36
        [% INCLUDE 'patron-title.inc' %]
37
        [% INCLUDE 'patron-title.inc' %]
37
- 

Return to bug 26534