{# # ------------------------------------------------------------------------- # Fields plugin for GLPI # ------------------------------------------------------------------------- # # LICENSE # # This file is part of Fields. # # Fields 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 2 of the License, or # (at your option) any later version. # # Fields 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 Fields. If not, see . # ------------------------------------------------------------------------- # @copyright Copyright (C) 2013-2022 by Fields plugin team. # @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html # @link https://github.com/pluginsGLPI/fields # ------------------------------------------------------------------------- #} {% import 'components/form/fields_macros.html.twig' as fields %} {% set rand = random() %}
{{ __('The engine is used for hide block when main object meets condition')}}
{% if has_fields %} {% endif %}
{{ fields.largeTitle(_n('Condition to hide block', 'Conditions to hide block', get_plural_number(), 'fields'), '', false) }}
{% if container_display_conditions|length > 0 %} {% for container_display_condition in container_display_conditions %} {% endfor %} {% else %} {% endif %}
{{ __('Item type') }} {{ __('Field') }} {{ __('Condition') }} {{ __('Value') }}
{{ container_display_condition.itemtype|itemtype_name }} {{ call('PluginFieldsContainerDisplayCondition::getFieldName', [container_display_condition.search_option, container_display_condition.itemtype]) }} {{ call('PluginFieldsContainerDisplayCondition::getConditionName', [container_display_condition.condition]) }} {{ call('PluginFieldsContainerDisplayCondition::getRawValue', [container_display_condition.search_option, container_display_condition.itemtype, container_display_condition.value]) }}
{{ __('No item found') }}
{# .row #}
{# .row #}
{# .flex-row #}
{# .card-body #}