{# # --------------------------------------------------------------------- # # GLPI - Gestionnaire Libre de Parc Informatique # # http://glpi-project.org # # @copyright 2015-2025 Teclib' and contributors. # @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 . # # --------------------------------------------------------------------- #} {% extends 'components/itilobject/timeline/form_timeline_item.html.twig' %} {% import 'components/form/fields_macros.html.twig' as fields %} {% block timeline_card %} {% if form_mode == 'view' %} {{ include('components/itilobject/timeline/sub_documents.html.twig', { 'entry': { 'documents': [entry], }, 'item': item, }, with_context: false) }} {% else %}
{{ call_plugin_hook(constant('Glpi\\Plugin\\Hooks::PRE_ITEM_FORM'), {"item": subitem, 'options': params}) }} {% set can_screenshot = call('Document::isValidDoc', ['.png']) is not empty %} {% set can_screenrecord = call('Document::isValidDoc', ['.webm']) is not empty %} {% if can_screenshot or can_screenrecord %}
{% if can_screenshot %} {% endif %} {% if can_screenrecord %} {% endif %}

{% endif %} {% if get_current_interface() == 'central' %} {{ fields.dropdownField( 'DocumentCategory', 'documentcategories_id', null, __("Heading"), { 'full_width': true, 'is_horizontal': false } ) }} {% endif %} {{ fields.fileField( 'filename', null, __("File"), { 'multiple': true, 'full_width': true, 'is_horizontal': false, } ) }} {{ call_plugin_hook(constant('Glpi\\Plugin\\Hooks::POST_ITEM_FORM'), {"item": subitem, 'options': params}) }}
{% endif %} {% endblock %}