<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* flashmessages/flashmessages.html.twig */
class __TwigTemplate_2ea878612030ab253ff03ccd6c51a469 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "flashmessages/flashmessages.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "flashmessages/flashmessages.html.twig"));
// line 1
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "flashes", ["primary"], "method", false, false, false, 1));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 2
echo " <div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"fas fa-trophy\"></i></span>
<span class=\"alert-inner--text\"><strong>Succès</strong> ";
// line 4
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "flashes", ["secondary"], "method", false, false, false, 10));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 11
echo " <div class=\"alert alert-secondary alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"fas fa-check\"></i></span>
<span class=\"alert-inner--text\"><strong>Succès</strong> ";
// line 13
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "flashes", ["success"], "method", false, false, false, 19));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 20
echo " <div class=\"alert alert-success alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"far fa-thumbs-up\"></i></span>
<span class=\"alert-inner--text\"><strong>Succès</strong> ";
// line 22
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 28, $this->source); })()), "flashes", ["info"], "method", false, false, false, 28));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 29
echo " <div class=\"alert alert-info alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"far fa-bell\"></i></span>
<span class=\"alert-inner--text\"><strong>Information</strong> ";
// line 31
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 37, $this->source); })()), "flashes", ["warning"], "method", false, false, false, 37));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 38
echo " <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"fas fa-exclamation-circle\"></i></span>
<span class=\"alert-inner--text\"><strong>Attention!</strong> ";
// line 40
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 46, $this->source); })()), "flashes", ["danger"], "method", false, false, false, 46));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 47
echo " <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
// line 60
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "flashmessages/flashmessages.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 160 => 60, 152 => 47, 147 => 46, 135 => 40, 131 => 38, 126 => 37, 114 => 31, 110 => 29, 105 => 28, 93 => 22, 89 => 20, 84 => 19, 72 => 13, 68 => 11, 63 => 10, 51 => 4, 47 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% for message in app.flashes('primary') %}
<div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"fas fa-trophy\"></i></span>
<span class=\"alert-inner--text\"><strong>Succès</strong> {{ message }}</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{% endfor %}
{% for message in app.flashes('secondary') %}
<div class=\"alert alert-secondary alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"fas fa-check\"></i></span>
<span class=\"alert-inner--text\"><strong>Succès</strong> {{ message }}</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{% endfor %}
{% for message in app.flashes('success') %}
<div class=\"alert alert-success alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"far fa-thumbs-up\"></i></span>
<span class=\"alert-inner--text\"><strong>Succès</strong> {{ message }}</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{% endfor %}
{% for message in app.flashes('info') %}
<div class=\"alert alert-info alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"far fa-bell\"></i></span>
<span class=\"alert-inner--text\"><strong>Information</strong> {{ message }}</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{% endfor %}
{% for message in app.flashes('warning') %}
<div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"fas fa-exclamation-circle\"></i></span>
<span class=\"alert-inner--text\"><strong>Attention!</strong> {{ message }}</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{% endfor %}
{% for message in app.flashes('danger') %}
<div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{#<div class=\"alert alert-danger alert-dismissible fade show\" role=\"alert\">
<span class=\"alert-inner--icon\"><i class=\"fas fa-hand-paper\"></i></span>
<span class=\"alert-inner--text\"><strong>Erreur</strong> {{ message }}</span>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>#}
{% endfor %}
", "flashmessages/flashmessages.html.twig", "/home/maixmebouz/www/dev/cbrc/templates/flashmessages/flashmessages.html.twig");
}
}