{# # ------------------------------------------------------------------------- # Tag plugin for GLPI # ------------------------------------------------------------------------- # # LICENSE # # This file is part of Tag. # # Tag 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. # # Tag 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 Tag. If not, see . # ------------------------------------------------------------------------- # @copyright Copyright (C) 2014-2023 by Teclib'. # @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html # @link https://github.com/pluginsGLPI/tag # ------------------------------------------------------------------------- #} {% extends "generic_show_form.html.twig" %} {% import 'components/form/fields_macros.html.twig' as fields %} {% set field_options = field_options ?? {} %} {% block more_fields %} {{ fields.colorField( 'color', item.fields['color'] ?? '#DDDDDD', __('Background color'), field_options ) }} {{ fields.dropdownArrayField( 'type_menu', '', type_menu_elements, _n('Associated item type', 'Associated item types', get_plural_number()), field_options|merge({ 'values': type_menu_values, 'multiple': true }) ) }} {% endblock %}