{# # --------------------------------------------------------------------- # # 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 'generic_show_form.html.twig' %} {% import 'components/form/fields_macros.html.twig' as fields %} {% block form_fields %} {{ fields.dropdownArrayField('notifications_ajax_sound', config('notifications_ajax_sound'), { sound_a: __('Sound') ~ ' A', sound_b: __('Sound') ~ ' B', sound_c: __('Sound') ~ ' C', sound_d: __('Sound') ~ ' D', }, __('Default notification sound'), { display_emptychoice: true, emptylabel: __('Disabled'), }) }} {{ fields.dropdownNumberField('notifications_ajax_check_interval', config('notifications_ajax_check_interval'), __('Time to check for new notifications (in seconds)'), { min: 5, max: 120, step: 5 }) }} {{ fields.textField('notifications_ajax_icon_url', config('notifications_ajax_icon_url'), __('URL of the icon'), { additional_attributes: { placeholder: path('pics/glpi.png') } }) }} {{ fields.dropdownNumberField('notifications_ajax_expiration_delay', config('notifications_ajax_expiration_delay'), __('Validity period of notifications (in days)'), { helper: __('Notifications older than the selected value will not be displayed. Expired notifications will be deleted by the %s crontask.')|format(stale_crontask_name), toadd: { 0: __('Unlimited') } }) }} {% endblock %}