From da72f9b7d08c283712c94bb5e4ae315c03f184dc 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 Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/css/addbiblio.css | 13 +++++++++++-- .../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 f20dc7484b..2b6caa8034 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -674,9 +674,17 @@ [% END %] [% previous = innerloo.tag %] -
    + [% IF ( innerloo.repeatable ) %] +
      + [% ELSE %] +
        + [% END %] [% END %] -
      • + [% IF ( innerloo.repeatable ) %] +
      • + [% ELSE %] +
      • + [% END %]
        [% IF advancedMARCEditor %] [% innerloo.tag | html %] -- 2.39.5