mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 06:58:49 +02:00
Popover menu: Add HTML data attributes in templates
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{% extends 'base/components/popover-menu/item/layout.html.twig' %}
|
||||
{% block iboPopoverMenuItem %}
|
||||
<hr class="ibo-popover-menu--item ibo-popover-menu--separator">
|
||||
<hr class="ibo-popover-menu--item ibo-popover-menu--separator"
|
||||
{% if oUIBlock.GetDataAttributes() %}
|
||||
{% for sName, sValue in oUIBlock.GetDataAttributes() %}
|
||||
data-{{ sName }}="{{ sValue }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user