{# # --------------------------------------------------------------------- # # 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 . # # --------------------------------------------------------------------- #} {% extends "pages/admin/form/condition_configuration.html.twig" %} {# Compute strategy, with a fallback to "Always visible" for new questions #} {% if item is null %} {% set question_strategy = enum('Glpi\\Form\\Condition\\ValidationStrategy').NO_VALIDATION %} {% else %} {% set question_strategy = item.getConfiguredValidationStrategy() %} {% endif %} {% block conditions_editor %}
{# Parent properties #} {% set strategies = 'Glpi\\Form\\Condition\\ValidationStrategy' %} {% set selected_strategy = question_strategy %} {% set strategy_input_name = "validation_strategy" %} {% set conditions = item is not null ? item.getConfiguredValidationConditionsData() : [] %}
{% endblock %}