diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/additional-filters.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/additional-filters.inc new file mode 100644 index 0000000000..5bf06dfc7b --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/additional-filters.inc @@ -0,0 +1,12 @@ +[% IF filters && filters.size > 0 %] + [% filter_class = filter_class || 'filters' %] + +
+[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/table-filters.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/table-filters.inc deleted file mode 100644 index 714ce3c1d7..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/table-filters.inc +++ /dev/null @@ -1,30 +0,0 @@ -[%# TABLE FILTER CONTROLS USAGE %] -[%# [ INCLUDE 'table-filters.inc' %] -[%# filters = [ %] -[%# { id = 'expired', label_show = t('Show expired'), label_hide = t('Hide expired') }, %] -[%# { id = 'cancelled', label_show = t('Show cancelled'), label_hide = t('Hide cancelled') }, %] -[%# { id = 'completed', label_show = t('Show completed'), label_hide = t('Hide completed') } %] -[%# ] %] -[%# filter_class = 'bookings' # Optional, defaults to 'filters' %] -[%# ] %] -[%# %] -[%# Parameters: %] -[%# - filters: Array of filter objects with: %] -[%# - id: Unique identifier for the filter %] -[%# - label_show: Text when filter shows items %] -[%# - label_hide: Text when filter hides items %] -[%# - active: Boolean - filter starts active (optional, defaults to true) %] -[%# - filter_class: CSS class prefix (optional, defaults to 'filters') %] - -[% IF filters && filters.size > 0 %] - [% filter_class = filter_class || 'filters' %] - - -[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt index f3341d5b71..1637371075 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -42,10 +42,10 @@