@@ -, +, @@ item types administration tabs - Edit an item type. - On the edit page you should see tabs under "Choose an icon." - Confirm that the tabs look correct and work correctly. - If you did not previously have any icon selected, the "None" tab should be active. - If you had an icon selected, that icon set's tab should be active. - Confirm that if you specify a remote image (e.g.https://via.placeholder.com/50/FF0000/FFFFFF.png) the tab is correctly shown after you save and re-edit. - Confirm that changing icons works correctly and that the selected icon's tab is always active when you return to the edit view. --- .../prog/css/src/staff-global.scss | 14 ++++ .../prog/en/includes/admin-icon-selection.inc | 79 +++++++++++++++++++ .../en/modules/admin/authorised_values.tt | 78 +----------------- .../prog/en/modules/admin/itemtypes.tt | 78 +----------------- 4 files changed, 98 insertions(+), 151 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -3300,6 +3300,20 @@ code { padding: 1em; } +.tab-pane { + &.active { + &::after, + &::before { + content: " "; + display: table; + } + + &::after { + clear: both; + } + } +} + .nav-tabs { border-bottom: 0; padding: .2em 1.4em 0 0; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc @@ -0,0 +1,79 @@ +[% IF ( context == "authval" ) %] + [% SET image_location = av.imageurl %] +[% ELSE %] + [% SET image_location = itemtype.image_location("intranet") %] +[% END %] + +[% WRAPPER tabs id= "icons" %] +