{# # ------------------------------------------------------------------------- # Costs plugin for GLPI # Copyright (C) 2018-2024 by the TICgal Team. # # https://github.com/ticgal/costs # ------------------------------------------------------------------------- # LICENSE # # This file is part of the Costs plugin. # # Costs plugin 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. # # Costs plugin 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 Costs. If not, see . # ------------------------------------------------------------------------- # @package Costs # @author the TICgal team # @copyright Copyright (c) 2018-2024 TICgal team # @license AGPL License 3.0 or (at your option) any later version # http://www.gnu.org/licenses/agpl-3.0-standalone.html # @link https://tic.gal # @since 2018 # ------------------------------------------------------------------------- #} {% import 'components/form/fields_macros.html.twig' as fields %} {% import 'components/form/buttons.html.twig' as buttons %} {% set no_header = no_header|default(not item.isNewItem() and not _get._in_modal|default(false)) %} {% set bg = '' %} {% if item.isDeleted() %} {% set bg = 'asset-deleted' %} {% endif %}
{{ include('components/form/header.html.twig', {'in_twig': true, 'no_header': true}) }} {% set params = params ?? [] %}
{% if item.isfield('taskdescription') %} {{ fields.dropdownYesNo( 'taskdescription', item.fields['taskdescription'], __("Add task description on cost", "cost") ) }} {% endif %}
{# .row #}
{# .row #}
{# .flex-row #}
{# .flex-column #}
{# .flex-wrap #} {{ include('components/form/buttons.html.twig') }}