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 85b029cd5c..a4282c6f36 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -3291,6 +3291,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; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc new file mode 100644 index 0000000000..54261833d3 --- /dev/null +++ b/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" %] +
Choose an icon:
+ [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname="none" %] + None + [% END %] + [% FOREACH imageset IN imagesets %] + [% IF ( imageset.imagesetactive ) %] + [% SET bt_active = 1 %] + [% ELSE %] + [% SET bt_active = 0 %] + [% END %] + [% WRAPPER tab_item tabname= imageset.imagesetname bt_active= bt_active %] [% imageset.imagesetname | html %] [% END %] + [% END %] + [% IF image_location.match('^http') %] + [% SET bt_active = 1 %] + [% ELSE %] + [% SET bt_active = 0 %] + [% END %] + [% WRAPPER tab_item tabname= "remote" bt_active= bt_active %] Remote image [% END %] + [% END %] + + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname="none" bt_active= 0 %] +
+ +
+ [% END %] + + [% FOREACH imageset IN imagesets %] + [% IF ( imageset.imagesetactive ) %] + [% SET bt_active = 1 %] + [% ELSE %] + [% SET bt_active = 0 %] + [% END %] + [% WRAPPER tab_panel tabname=imageset.imagesetname bt_active= bt_active %] +
+ [% FOREACH image IN imageset.images %] + + [% END #/ FOREACH image %] +
+ [% END # /tab_panel %] + [% END # /FOREACH imageset %] + + [% IF image_location.match('^http') %] + [% SET bt_active = 1 %] + [% ELSE %] + [% SET bt_active = 0 %] + [% END %] + [% WRAPPER tab_panel tabname="remote" %] + + [% IF image_location.match('^http') %] + + + + [% ELSE %] + + + [% END %] + [% END %] + [% END # /tab_panels %] +[% END # /tabs#icons %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index 7f98865c4e..600c03c381 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -157,82 +157,8 @@ -
-
Choose an icon:
- -
-
-
- -
-
+ [% INCLUDE 'admin-icon-selection.inc' context = "authval" %] - [% FOREACH imageset IN imagesets %] - [% IF ( imageset.imagesetactive ) %] -
- [% ELSE %] -
- [% END %] -
- [% FOREACH image IN imageset.images %] - - [% END # /FOREACH image %] -
-
- [% END # /FOREACH imageset %] - - [% IF av.imageurl.match('^http') %] -
- [% ELSE %] -
- [% END %] - - [% IF av.imageurl.match('^http') %] - - - - [% ELSE %] - - - [% END %] -
-
-
[% END # /IF action_add_category %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index f206f8fee4..fb8d6956e4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -217,83 +217,11 @@ Item types › Administration › Koha [% END %] + [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %] -
-
Choose an icon:
- -
-
-
- -
-
- - [% FOREACH imageset IN imagesets %] - [% IF ( imageset.imagesetactive ) %] -
- [% ELSE %] -
- [% END %] -
- [% FOREACH image IN imageset.images %] - - [% END #/ FOREACH image %] -
-
- [% END #/FOREACH imageset %] - - [% SET image_location = itemtype.image_location('intranet') %] - [% IF image_location.match('^http') %] -
- [% ELSE %] -
- [% END %] - - [% IF image_location.match('^http') %] - - - [% IF itemtype.imageurl %] - - [% END %] - [% ELSE %] - - - [% END %] -
-
-
+ [% INCLUDE 'admin-icon-selection.inc' context = "itemtype" %] [% END %] +