{# # --------------------------------------------------------------------- # # 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 . # # --------------------------------------------------------------------- #} {% import 'components/form/fields_macros.html.twig' as fields %} {% import 'components/form/basic_inputs_macros.html.twig' as inputs %}
{{ inputs.hidden('action', 'process_import') }} {{ inputs.hidden('_glpi_csrf_token', csrf_token()) }}
{% for refused in refused_rules %} {% endfor %}
{{ __('Rules refused') }}
{{ _n('Type', 'Types', 1) }} {{ __('Name') }} {{ __('Reason of rejection') }}
{{ refused['type_title'] }} {{ refused['rule_name'] }} {% if refused['reasons']['criteria'] is not defined and refused['reasons']['actions'] is not defined %} {% if refused['reasons']['entity'] is defined %} {% endif %} {% endif %} {% if refused['reasons']['criteria'] is defined %} {% endif %} {% if refused['reasons']['actions'] is defined %} {% endif %}
{{ __('%1$s (%2$s)')|format(__('Entity not found'), refused['reasons']['entity']) }} {{ fields.dropdownField('Entity', 'new_entities[' ~ refused['uuid'] ~ ']', null, __('Select the desired entity')) }}
{{ __('Criteria refused') }} {% for criterion in refused['reasons']['criteria'] %} {% endfor %}
{{ _n('Criterion', 'Criteria', 1) }} {{ __('Condition') }} {{ __('Reason') }}
{{ criterion['name'] }} {{ criterion['label'] }} {{ criterion['pattern'] }}
{{ __('Actions refused') }} {% for action in refused['reasons']['actions'] %} {% endfor %}
{{ _n('Field', 'Fields', 1) }} {{ __('Action type') }} {{ __('Value') }}
{{ action['name'] }} {{ action['label'] }} {{ action['value']|default('') }}
{{ inputs.submit('submit', _x('button', 'Post'), 1) }}