mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-25 21:34:12 +01:00
- Add ancestors CSS classes on UIBlocks when missing (programmatically) - Fix SCSS due to some blocks inheriting their ancestors rules
11 lines
624 B
Twig
11 lines
624 B
Twig
<div {% if oUIBlock.GetId() is defined %}id="{{ oUIBlock.GetId() }}"{% endif %} class="{{ oUIBlock.GetBlocksInheritanceCSSClassesAsString() }} {{ oUIBlock.GetAdditionalCSSClassesAsString() }}" data-role="ibo-popover-menu">
|
|
{% for aSection in oUIBlock.GetSections() %}
|
|
{% if aSection.aItems|length > 0 %}
|
|
<div class="ibo-popover-menu--section" data-role="ibo-popover-menu--section">
|
|
{% for oUIBlockItem in aSection.aItems %}
|
|
{{ render_block(oUIBlockItem, {aPage: aPage}) }}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div> |