mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
24 lines
1.0 KiB
Twig
24 lines
1.0 KiB
Twig
<div id="{{ oUIBlock.GetId() }}"
|
|
class="ibo-alert ibo-is-{{ oUIBlock.GetColor() }}{% if oUIBlock.IsOpenedByDefault() %} ibo-is-opened{% endif %}">
|
|
{% if oUIBlock.IsCollapsible() %}
|
|
<div class="ibo-alert--action-button ibo-alert--maximize-button" data-role="ibo-alert--collapse-toggler">
|
|
<i class="fas fa-caret-down"></i>
|
|
</div>
|
|
<div class="ibo-alert--action-button ibo-alert--minimize-button" data-role="ibo-alert--collapse-toggler">
|
|
<i class="fas fa-caret-up"></i>
|
|
</div>
|
|
{% endif %}
|
|
{% if oUIBlock.IsClosable() %}
|
|
<div class="ibo-alert--action-button ibo-alert--close-button" data-role="ibo-alert--close-button">
|
|
<i class="fas fa-times"></i>
|
|
</div>
|
|
{% endif %}
|
|
{% if oUIBlock.GetTitle() is not empty %}
|
|
<div class="ibo-alert--title"
|
|
{% if oUIBlock.IsCollapsible() %}data-role="ibo-alert--collapse-toggler"{% endif %}
|
|
>{{ oUIBlock.GetTitle() }}</div>
|
|
{% endif %}
|
|
{% if oUIBlock.GetContent() is not empty %}
|
|
<div class="ibo-alert--body">{{ oUIBlock.GetContent()|raw }}</div>
|
|
{% endif %}
|
|
</div> |