{# # ------------------------------------------------------------------------- # GenInventoryNumber plugin for GLPI # ------------------------------------------------------------------------- # # LICENSE # # This file is part of GenInventoryNumber. # # GenInventoryNumber 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. # # GenInventoryNumber 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 GenInventoryNumber. If not, see . # ------------------------------------------------------------------------- # @copyright Copyright (C) 2008-2022 by GenInventoryNumber plugin team. # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html # @link https://github.com/pluginsGLPI/geninventorynumber # ------------------------------------------------------------------------- #} {% extends "generic_show_form.html.twig" %} {% import 'components/form/fields_macros.html.twig' as fields %} {% block form_fields %} {{ fields.readOnlyField( 'name', item.fields['name'], __('Field'), ) }} {{ fields.nullField() }} {{ fields.dropdownYesNo( 'is_active', item.fields['is_active'], __('Active'), ) }} {{ fields.nullField() }} {{ fields.numberField( 'index', item.fields['index'], __('Global index position', 'geninventorynumber'), ) }} {{ fields.nullField() }} {{ fields.dropdownArrayField( 'auto_reset_method', item.fields['auto_reset_method'] ?? 0, auto_reset_methods, __('Index auto-reset method', 'geninventorynumber') ) }} {{ fields.nullField() }} {{ fields.textareaField( 'comment', item.fields['comment'], __('Comments'), ) }} {{ fields.nullField() }} {% endblock %}