{#
# ---------------------------------------------------------------------
#
# 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
{{ __('Impact') }} | {% for impact in 5..1 %}
{{ call('Ticket::getImpactName', [impact]) }}
{% if impact == 3 %} {{ inputs.hidden('_impact_3', 1) }} {% else %} {{ fields.dropdownYesNo('_impact_' ~ impact, is_impact[impact], '', { nolabel: true }) }} {% endif %} |
{% endfor %}
||
{{ __('Urgency') }} | {% for impact in 5..1 %}{% endfor %} | ||
{{ call('Ticket::getUrgencyName', [urgency]) }} | {% if urgency == 3 %} {{ inputs.hidden('_urgency_3', 1) }} {% else %} {{ fields.dropdownYesNo('_urgency_' ~ urgency, is_urgency[urgency], '', { nolabel: true }) }} {% endif %} | {% for impact in 5..1 %} {% set priority = config['priority_matrix'][urgency][impact]|default(((urgency + impact) / 2)|round) %} {% if is_urgency[urgency] and is_impact[impact] %} {% set bg_color = session('glpipriority_' ~ priority) %}{% do call('Ticket::dropdownPriority', [{ value: priority, name: '_matrix_' ~ urgency ~ '_' ~ impact, enable_filtering: false }]) %} | {% else %}{{ inputs.hidden('_matrix_' ~ urgency ~ '_' ~ impact, priority) }} | {% endif %} {% endfor %}