{# # --------------------------------------------------------------------- # # GLPI - Gestionnaire Libre de Parc Informatique # # http://glpi-project.org # # @copyright 2015-2025 Teclib' and contributors. # @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 . # # --------------------------------------------------------------------- #} {# @var form Glpi\Form\Form #} {# @var can_update bool #} {# @var vertical_layout bool #} {# @var ghost_button bool #} {# @var hide_section_button bool #} {# @var hide_new_horizontal_layout_button bool #} {# @var show_remove_horizontal_placeholder_button bool #} {% set ghost_button = ghost_button|default(false) %} {% set hide_section_button = hide_section_button|default(false) %} {% set hide_new_horizontal_layout_button = hide_new_horizontal_layout_button|default(false) %} {% set show_remove_horizontal_placeholder_button = show_remove_horizontal_placeholder_button|default(false) %} {% if can_update %}
{# Add question action #} {# Add comment action #} {# Add section action #} {% if not hide_section_button %} {% set add_section_action_visible = form.getSections()|length > 1 or (form.getSections()|first).getBlocks()|length > 0 %} {% endif %} {# Add horizontal layout action #} {% if not hide_new_horizontal_layout_button %} {% endif %} {# Add remove horizontal layout slot action #} {% if show_remove_horizontal_placeholder_button %} {% endif %}
{% endif %}