{# # ------------------------------------------------------------------------- # Order plugin for GLPI # ------------------------------------------------------------------------- # # LICENSE # # This file is part of Order. # # Order 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. # # Order 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 Order. If not, see . # ------------------------------------------------------------------------- # @copyright Copyright (C) 2009-2023 by Order plugin team. # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html # @link https://github.com/pluginsGLPI/order # ------------------------------------------------------------------------- #} {% import 'components/form/fields_macros.html.twig' as fields %} {% set fields_option = { 'field_class': 'col-12 col-sm-12', 'no_label': true, 'mb': 'mb-0' } %}
{% if config.canAddImmobilizationNumber() %} {% endif %} {% if is_multi_entities_mode and active_entities|length > 1 %} {% endif %} {% if config.canAddImmobilizationNumber() %} {% endif %} {% if is_multi_entities_mode and active_entities|length > 1 %} {% endif %} {% for item in item_rows %} {% if not item.name %} {% else %} {% endif %} {% if item.otherserial %} {% else %} {% endif %} {% if config.canAddImmobilizationNumber() %} {% if item.immo_number %} {% else %} {% endif %} {% endif %} {% if is_multi_entities_mode and active_entities|length > 1 %} {% else %} {% endif %} {% endfor %}
{{ __("Mass value filling", "order") }}
{{ fields.textareaField( "mass_name_insertion", "", "", fields_option|merge({'id': 'mass_name_insertion'}) ) }} {{ fields.textareaField( "mass_serial_insertion", "", "", fields_option|merge({'id': 'mass_serial_insertion'}) ) }} {{ fields.textareaField( "mass_otherserial_insertion", "", "", fields_option|merge({'id': 'mass_otherserial_insertion'}) ) }} {{ fields.textareaField( "mass_immo_number_insertion", "", "", fields_option|merge({'id': 'mass_immo_number_insertion'}) ) }} {{ fields.dropdownField( 'Entity', "mass[entities_id]", 0, "", fields_option|merge({'on_change': 'plugin_order_setAllEntities(this.value)'}) ) }} {{ fields.dropdownField( 'Location', "mass[locations_id]", 0, "", fields_option|merge({'on_change': 'plugin_order_setAllLocations(this.value)'}) ) }} {{ fields.dropdownField( 'Group', "mass[groups_id]", 0, "", fields_option|merge({'on_change': 'plugin_order_setAllGroups(this.value)'}) ) }} {{ fields.dropdownField( 'State', "mass[states_id]", 0, "", fields_option|merge({'on_change': 'plugin_order_setAllStates(this.value)'}) ) }}
{{ __("Product reference", "order") }} {{ __("Name") }} {{ __("Serial number") }} {{ __("Inventory number") }}{{ __("Immobilization number") }}{{ __("Entity") }}{{ __("Location") }} {{ __("Group") }} {{ __("Status") }}
{{ item.reference_name }} {{ fields.textField( "id[" ~ item.i ~ "][name]", "", "", fields_option ) }} {{ constant('Dropdown::EMPTY_VALUE') }} {{ fields.textField( "id[" ~ item.i ~ "][serial]", "", "", fields_option ) }} {{ constant('Dropdown::EMPTY_VALUE') }} {{ fields.textField( "id[" ~ item.i ~ "][otherserial]", "", "", fields_option ) }} {{ constant('Dropdown::EMPTY_VALUE') }} {{ fields.textField( "id[" ~ item.i ~ "][immo_number]", "", "", fields_option ) }} {% set rand = random() %} {{ fields.dropdownField( 'Entity', "id[" ~ item.i ~ "][entities_id]", item.order_entity_id, "", fields_option|merge({'on_change': 'plugin_order_adaptOnSelectedEntity(' ~ item.i ~ ', this.value)'}) ) }} {{ fields.dropdownField( 'Location', "id[" ~ item.i ~ "][locations_id]", item.locations_id, "", fields_option ) }} {{ fields.dropdownField( 'Group', "id[" ~ item.i ~ "][groups_id]", item.groups_id, "", fields_option ) }} {{ fields.dropdownField( 'State', "id[" ~ item.i ~ "][states_id]", item.states_id, "", fields_option ) }}