{# # --------------------------------------------------------------------- # # GLPI - Gestionnaire Libre de Parc Informatique # # http://glpi-project.org # # @copyright 2015-2024 Teclib' and contributors. # @copyright 2003-2014 by the INDEPNET Development Team. # @licence https://www.gnu.org/licenses/gpl-3.0.html # # --------------------------------------------------------------------- # # LICENSE # # This file is part of GLPI. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # --------------------------------------------------------------------- #} {% if showmassiveactions and count > 0 %}
{% do call('Html::showMassiveActions', [massiveactionparams]) %}
{% endif %}
{% if not original_params.hide_controls %}
{% set mainform = mainform ?? true %} {% set showaction = showaction ?? true %} {% if mainform and showaction %}
{% endif %} {% if not original_params.hide_criteria %}
{% set is_filter_active = false %} {% if active_search_name|length %} {% set is_filter_active = true %} {% endif %} {% set animation_cls = "animate__animated animate__zoomIn" %} {% set active_savedsearch_class = active_savedsearch ? "btn-active-search" : "" %} {% if not user_pref('show_search_form') %} {% set active_filter_class = is_filter_active ? "btn-active-search" : "btn-ghost-secondary" %} {% endif %}
{% if data['search']['as_map'] != 1 %} {% set active_sort_class = active_sort ? "btn-active-sort" : "" %} {% endif %}
{% endif %} {% if mainform and showaction %}
{% endif %}
{% do call([itemtype, 'showSearchStatusArea']) %}
{% if user_pref('search_pagination_on_top') %} {% if data['display_type'] != constant('Search::GLOBAL_SEARCH') and data['search']['as_map'] == 0 %} {% endif %} {% endif %}
{% if may_be_located %}
{% set table_class = (data['search']['as_map'] == 0 ? "btn-ghost-info" : "") %} {% set located_class = (data['search']['as_map'] == 1 ? "btn-ghost-info" : "") %}
{% endif %} {% if may_be_browsed %} {% endif %} {% if may_be_deleted %} {% endif %} {% if may_be_unpublished %} {% endif %} {% if can_config %} {% endif %} {% if count > 0 %} {% set exporthref = path('/front/report.dynamic.php') ~ "?" ~ { 'item_type': itemtype, 'sort': sort, 'order': order, 'start': start, }|url_encode ~ '&' ~ posthref %} {% endif %}
{% endif %}