-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feat: Enable/disable a tag * fix header
- Loading branch information
Showing
2 changed files
with
85 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{# | ||
# ------------------------------------------------------------------------- | ||
# Tag plugin for GLPI | ||
# ------------------------------------------------------------------------- | ||
# | ||
# LICENSE | ||
# | ||
# This file is part of Tag. | ||
# | ||
# Tag 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. | ||
# | ||
# Tag 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 Tag. If not, see <http://www.gnu.org/licenses/>. | ||
# ------------------------------------------------------------------------- | ||
# @copyright Copyright (C) 2014-2023 by Teclib'. | ||
# @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html | ||
# @link https://github.com/pluginsGLPI/tag | ||
# ------------------------------------------------------------------------- | ||
#} | ||
|
||
{% extends "generic_show_form.html.twig" %} | ||
{% import 'components/form/fields_macros.html.twig' as fields %} | ||
{% set field_options = field_options ?? {} %} | ||
|
||
{% block more_fields %} | ||
{{ fields.colorField( | ||
'color', | ||
item.fields['color'] ?? '#DDDDDD', | ||
__('Background color'), | ||
field_options | ||
) }} | ||
|
||
{{ fields.dropdownArrayField( | ||
'type_menu', | ||
'', | ||
type_menu_elements, | ||
_n('Associated item type', 'Associated item types', get_plural_number()), | ||
field_options|merge({ | ||
'values': type_menu_values, | ||
'multiple': true | ||
}) | ||
) }} | ||
{% endblock %} |