{# # ------------------------------------------------------------------------- # 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 %} {% import 'components/alerts_macros.html.twig' as alerts %} {% set rand = random() %}
{{ __('Client Injection Configuration', 'datainjection') }}
{% if models|length > 0 %} {{ fields.dropdownField( 'PluginDatainjectionModel', 'dropdown_models', 0, __('Model', 'datainjection'), { 'add_field_class' : 'col-sm-12', 'input_class' : 'col-6 col-sm-6', 'label_class' : 'col-6 col-sm-6', } ) }} {% else %} {% set text = __('No model currently available', 'datainjection') %} {% if can_create_model %} {% set text = text ~ '. ' ~ __('You can start the model creation by hitting the button', 'datainjection') ~ ': ' ~ model_type_name %} {% endif %} {{ alerts.alert_info(text) }} {% endif %}