mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
- Add ancestors CSS classes on UIBlocks when missing (programmatically) - Fix SCSS due to some blocks inheriting their ancestors rules
20 lines
997 B
Twig
20 lines
997 B
Twig
{% extends 'base/components/popover-menu/item/layout.html.twig' %}
|
|
|
|
{% block iboPopoverMenuItem %}
|
|
<a id="{{ oUIBlock.GetID() }}" class="{{ oUIBlock.GetBlocksInheritanceCSSClassesAsString() }} {{ oUIBlock.GetAdditionalCSSClassesAsString() }}" data-role="ibo-popover-menu--item" data-uid="{{ oUIBlock.GetUID() }}" href="{{ oUIBlock.GetUrl() }}" onclick="{{ oUIBlock.GetJsCode()|escape }}"
|
|
{% if oUIBlock.GetDataAttributes() %}
|
|
{% for sName, sValue in oUIBlock.GetDataAttributes() %}
|
|
data-{{ sName }}="{{ sValue }}"
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if oUIBlock.GetTooltip() is not empty %}
|
|
data-tooltip-content="{{ oUIBlock.GetTooltip() }}"
|
|
{% endif %}
|
|
>
|
|
{% if oUIBlock.GetIconClass() is not empty %}
|
|
<i class="ibo-popover-menu--item--icon fa-fw {{ oUIBlock.GetIconClass() }}"></i>
|
|
{% endif %}
|
|
{{ oUIBlock.GetLabel() }}
|
|
</a>
|
|
{% endblock %}
|