{% block stylesheets %} {{ encore_entry_link_tags('app') }} {% endblock %} {% block body %}
{% for label, messages in app.flashes() %} {% for message in messages %} {% set flash_title = label|replace({'success': 'flash.success', 'error': 'flash.error' , 'warning': 'flash.warning', 'notice': 'flash.notice', 'info': 'flash.info'}) %} {% set flash_symbol = label|replace({'success': 'fa-check-circle', 'error': 'fa-exclamation-triangle' , 'warning': 'fa-exclamation-circle', 'notice': 'fa-flag', 'info': 'fa-flag'}) %} {% set flash_bg = label|replace({'success': 'bg-success text-white', 'error': 'bg-danger text-white', 'warning': 'bg-warning text-white', 'notice': 'bg-info text-white', 'info': 'bg'})%} {% endfor %} {% endfor %}
{# {if isset($messages)} {assign "alert_style" "alert-info"} {assign "alert_icon" "fas fa-info"} {foreach $messages as $msg} {if isset($msg.color) && $msg.color == "red"} {assign "alert_style" "alert-danger"} {assign "alert_icon" "fas fa-exclamation"} {elseif isset($msg.color) && ( $msg.color == "green" || $msg.color == "darkgreen")} {assign "alert_style" "alert-success"} {assign "alert_icon" "fas fa-check"} {elseif isset($msg.color) && ($msg.color == "yellow" || $msg.color == "orange")} {assign "alert_style" "alert-warning"} {assign "alert_icon" "fas fa-bell"} {/if} {/foreach}
{if !empty($messages_div_title)}

{$messages_div_title}

{/if}
{foreach $messages as $msg} {if isset($msg.text)} {if isset($msg.strong) && $msg.strong}{/if} {$msg.text nofilter} {if isset($msg.strong) && $msg.strong}{/if} {/if} {if isset($msg.html)} {$msg.html nofilter} {/if} {if !isset($msg.no_linebreak) || !$msg.no_linebreak}
{/if} {/foreach} {if !empty($reload_link)}
{/if}
#} {# Here will be the real content be injected#} {% block content %} {% endblock %}
{% endblock %} {% block javascripts %} {{ encore_entry_script_tags('app') }} {% endblock %} {% block scripts %} {% endblock %}