{# # ------------------------------------------------------------------------- # DataInjection plugin for GLPI # ------------------------------------------------------------------------- # # LICENSE # # This file is part of DataInjection. # # DataInjection 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. # # DataInjection 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 DataInjection. If not, see . # ------------------------------------------------------------------------- # @copyright Copyright (C) 2007-2023 by DataInjection plugin team. # @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html # @link https://github.com/pluginsGLPI/datainjection # ------------------------------------------------------------------------- #} {% import 'components/form/fields_macros.html.twig' as fields %} {% if add_form %}
{% endif %}
{{ __('File to inject', 'datainjection') }}
{{ fields.htmlField( 'filename', '', __('Choose a file', 'datainjection'), { 'add_field_class' : 'col-sm-12', 'label_class' : 'col-5 col-sm-5', 'input_class' : 'col-6 col-sm-6', } ) }} {{ fields.dropdownArrayField( 'file_encoding', 2, file_encoding_values, __('File encoding', 'datainjection'), { 'add_field_class' : 'col-sm-12', 'label_class' : 'col-5 col-sm-5', 'input_class' : 'col-6 col-sm-6', 'width': '325px', } ) }}
{% if confirm %} {% if confirm == 'creation' %} {% set message = __('Warning : existing mapped column will be overridden', 'datainjection') %} {% else %} {% set message = __("Watch out, you're about to inject data into GLPI. Are you sure you want to do it ?", 'datainjection') %} {% endif %} {% else %} {% endif %}   
{% if add_form %}
{% endif %}