Files
iTop/templates/base/components/input/set/layout.html.twig
Stephen Abello ceba1ad1e9 N°7157 - Allow users to unsubscribe from notification channels (#611)
* N°7157 - Allow users to unsubscribe from notification channels

* Fix type hinting

* Add missing dict entries

* Allows to subscribe/unsubscribe from notifications individually

* Refactor NotificationsService to singleton pattern

* Refactor NotificationsRepository to singleton pattern and rename methods to a more functional naming

* Add PHPDoc and type hints

* Dump autoloaders

* Replace modals with toasts

* Add dict entry

---------

Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
2024-02-19 09:25:47 +01:00

30 lines
738 B
Twig

{# @copyright Copyright (C) 2010-2023 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #}
{# Set ui block #}
<select
id="{{ oUIBlock.GetId() }}"
name="{{ oUIBlock.GetName() }}"
multiple
style="display: none;"
{% if oUIBlock.IsDisabled() == true %}
disabled
{% endif %}
>
</select>
{# Options template #}
{% if oUIBlock.HasOptionsTemplate() %}
<template id="{{ oUIBlock.GetId() }}_options_template">
{% include oUIBlock.GetOptionsTemplate() %}
</template>
{% endif %}
{# Items template #}
{% if oUIBlock.HasItemsTemplate() %}
<template id="{{ oUIBlock.GetId() }}_items_template">
{% include oUIBlock.GetItemsTemplate() %}
</template>
{% endif %}