mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 00:32:16 +02:00
26 lines
1.1 KiB
Twig
26 lines
1.1 KiB
Twig
<div id="welcome_popup_dialog" class="ibo-welcome-popup--dialog ibo-is-hidden">
|
|
<div class="ibo-welcome-popup--content">
|
|
{% for message in messages %}
|
|
<div class="ibo-welcome-popup--message {% if not loop.first %}ibo-is-hidden{% endif %}" data-message-uuid="{{ message.uuid }}" data_role="welcome-popup-title" data-title="{{ message.title }}">
|
|
{% if message.twig is defined %}
|
|
{{ include([message.twig ~ '.html.twig', message.twig ~ '.twig', message.twig], message.parameters ?? {}, sandboxed = true) }}
|
|
{% else %}
|
|
{{ message.html|raw }}
|
|
{% endif %}
|
|
<div class="ibo-welcome-popup--button" data-message-uuid="{{ message.uuid }}">
|
|
{% UIButton ForPrimaryAction{'sLabel':'UI:WelcomePopup:Button:Acknowledge'|dict_s, 'bIsSubmit': false } %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="ibo-welcome-popup--indicators">
|
|
{% if messages|length > 1 %}
|
|
{% for message in messages %}
|
|
<span class="ibo-welcome-popup--indicator {% if loop.first %}ibo-welcome-popup--active{% endif %}" data-message-uuid="{{ message.uuid }}"></span>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
|