From 7e2ccded534bdcae26ae51d7cdf7fcdddd4804e2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 Dec 2019 15:19:56 +0000 Subject: [PATCH] Bug 7882: (follow-up) Only show sortable icon for sortable tags Only tags which can be repeated can be sorted, so the "bars" icon should not display by these tags. Signed-off-by: Maryse Simard Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/css/addbiblio.css | 13 +++++++++++-- .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 12 ++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css index 99ade19239..ff79659a96 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css @@ -15,7 +15,7 @@ div#toolbar { margin: .3em 0; } -ul.sortable_field, ul.sortable_subfield { +.ui-tabs-panel ul { margin-bottom: 0; padding-left: 0; } @@ -26,7 +26,16 @@ ul li.tag, ul li.tag li.subfield_line { padding-left: 30px; } -ul li.tag::before, +ul li.tag::before { + position: absolute; + font-size: .8em; + top: 0; + left: 10px; + content: " "; +} + + +ul li.tag.sortable_tag::before, ul li.tag li.subfield_line::before { color: #999; cursor: move; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 473556a485..1d0b55e560 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -675,9 +675,17 @@ [% END %] [% previous = innerloo.tag %] -
    + [% IF ( innerloo.repeatable ) %] +
      + [% ELSE %] +
        + [% END %] [% END %] -
      • + [% IF ( innerloo.repeatable ) %] +
      • + [% ELSE %] +
      • + [% END %]
        [% IF advancedMARCEditor %] [% innerloo.tag | html %] -- 2.11.0