@@ -, +, @@ values administration page - Go to Administration -> Authorized values in the staff interface. - Select a category and then add or edit an authorized value in that category. - 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 changing icons works correctly and that the selected icon's tab is always active when you return to the edit page. --- .../prog/css/src/staff-global.scss | 6 + .../en/modules/admin/authorised_values.tt | 122 ++++++++++++------ 2 files changed, 85 insertions(+), 43 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1007,6 +1007,11 @@ fieldset { padding-bottom: 0; } } + + .toptabs { + clear: both; + margin: 1em; + } } } @@ -3572,6 +3577,7 @@ code { } .tab-content { + background-color: #FFF; border: 1px solid #B9D8D9; border-top-width: 0; padding: 1em; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -12,14 +12,29 @@ Authorized values › Administration › Koha [% INCLUDE 'doc-head-close.inc' %] - - +[% FILTER collapse %] + +[% END %] @@ -138,40 +153,58 @@ Authorized values › Administration › Koha -
-
Choose an icon:
- -
-
- [% FOREACH imageset IN imagesets %] -
-
-
- [% END %] -
+
+
Choose an icon:
+ + +
+
+
+ +
+
+ [% FOREACH imageset IN imagesets %] + [% IF ( imageset.imagesetactive ) %] +
+ [% ELSE %] +
+ [% END %] +
+ [% FOREACH image IN imageset.images %] + + [% END %] +
+
+ [% END %] +
+
[% END %]
@@ -366,7 +399,6 @@ Authorized values › Administration › Koha if ( $("#branches option:selected").length < 1 ) { $("#branches option:first").attr("selected", "selected"); } - $('#icons').tabs(); $("a.delete").click(function(){ return confirm(_("Are you sure you want to delete this authorized value?")); @@ -379,6 +411,10 @@ Authorized values › Administration › Koha $("#delete_category").on('submit', function(){ return confirm(_("Are you sure you want to delete this authorized value category?")); }); + + if( $(".tab-pane.active").length < 1 ){ + $("#icons a:first").tab("show"); + } }); [% END %] --