mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 12:08:47 +02:00
29 lines
1.0 KiB
Twig
29 lines
1.0 KiB
Twig
{# @copyright Copyright (C) 2010-2021 Combodo SARL #}
|
|
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
|
{# Content Block #}
|
|
{% apply spaceless %}
|
|
|
|
{% set bHasDiv = (oUIBlock.GetAdditionalCSSClassesAsString() or oUIBlock.GetDataAttributes() or oUIBlock.IsHidden()) %}
|
|
|
|
{% block iboContentBlockContainer %}
|
|
{% if bHasDiv %}
|
|
<div id="{{ oUIBlock.GetId() }}"
|
|
class="{% if oUIBlock.GetAdditionalCSSClassesAsString() %}{{ oUIBlock.GetAdditionalCSSClassesAsString() }}{% endif %}{% if oUIBlock.IsHidden() %} ibo-is-hidden{% endif %}"
|
|
{% if oUIBlock.GetDataAttributes() %}
|
|
{% for sName, sValue in oUIBlock.GetDataAttributes() %}
|
|
data-{{ sName }}="{{ sValue }}"
|
|
{% endfor %}
|
|
{% endif %}
|
|
>
|
|
{% endif %}
|
|
|
|
{% for oSubBlock in oUIBlock.GetSubBlocks() %}
|
|
{{ render_block(oSubBlock, {aPage: aPage}) }}
|
|
{% endfor %}
|
|
|
|
{% if bHasDiv %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
{% endapply %} |