{# # --------------------------------------------------------------------- # GLPI - Gestionnaire Libre de Parc Informatique # Copyright (C) 2015-2022 Teclib' and contributors. # # http://glpi-project.org # # based on GLPI - Gestionnaire Libre de Parc Informatique # Copyright (C) 2003-2014 by the INDEPNET Development Team. # # --------------------------------------------------------------------- # # LICENSE # # This file is part of GLPI. # # GLPI 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. # # GLPI 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 GLPI. 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-xl-8 col-md-10" %} {% set right_regular_cls = "col-xl-4 col-md-2" %} {% set left_expanded_cls = "col-xxl-4 col-md-4" %} {% set right_expanded_cls = "col-xxl-8 col-md-8" %} {% 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 fl_direction = (item.isNewItem ? '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 %}