{# # --------------------------------------------------------------------- # # GLPI - Gestionnaire Libre de Parc Informatique # # http://glpi-project.org # # @copyright 2015-2023 Teclib' and contributors. # @copyright 2003-2014 by the INDEPNET Development Team. # @licence https://www.gnu.org/licenses/gpl-3.0.html # # --------------------------------------------------------------------- # # LICENSE # # This file is part of GLPI. # # This program 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. # # This program 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 this program. If not, see . # # --------------------------------------------------------------------- #} {% set rand = random() %} {% set main_rand = rand %} {% set itil_layout = user_pref('itil_layout', true) %} {% set is_collapsed = itil_layout['collapsed'] == "true" %} {% set is_expanded = itil_layout['expanded'] == "true" %} {% set collapsed_cls = (is_collapsed ? "right-collapsed" : "") %} {% set expanded_cls = (is_expanded == "true" ? "right-expanded" : "") %} {% set left_regular_cls = "col-lg-8" %} {% set right_regular_cls = "col-lg-4" %} {% set left_expanded_cls = "col-xl-5 col-lg-6" %} {% set right_expanded_cls = "col-xl-7 col-lg-6" %} {% set left_side_cls = left_regular_cls %} {% set right_side_cls = right_regular_cls %} {% if is_expanded %} {% set left_side_cls = left_expanded_cls %} {% set right_side_cls = right_expanded_cls %} {% endif %}
{% if item.isNewItem and not params['template_preview'] %} {{ include('components/itilobject/mainform_open.html.twig') }} {% endif %}
{% set is_timeline_reversed = user_pref('timeline_order') == constant('CommonITILObject::TIMELINE_ORDER_REVERSE') %} {% set fl_direction = (item.isNewItem or is_timeline_reversed ? 'flex-column' : 'flex-column-reverse') %}
{% if item.isNewItem() %} {{ include('components/itilobject/timeline/new_form.html.twig') }} {% else %} {{ include('components/itilobject/timeline/timeline.html.twig') }} {% endif %}
{% if not params['template_preview'] %} {{ include('components/itilobject/footer.html.twig') }} {% endif %} {% if not item.isNewItem() and not params['template_preview'] %} {{ include('components/itilobject/mainform_close.html.twig') }} {% endif %}
{% if ticket_ticket %} {# Common form fields for ticket_ticket purge action #}
{% endif %} {# Common form fields for "addme_as_actor" action #} {% for actortype in ['requester', 'observer', 'assign'] %}
{% endfor %}