*/ private array $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 = []): iterable { $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", "partials/validation.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/validation.html.twig")); // line 1 if (array_key_exists("validation", $context)) { // line 2 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, ($context["validation"] ?? null), "errors", [], "any", true, true, false, 2) || CoreExtension::getAttribute($this->env, $this->source, ($context["validation"] ?? null), "success", [], "any", true, true, false, 2))) { // line 3 yield "
"; // line 7 if (CoreExtension::getAttribute($this->env, $this->source, ($context["validation"] ?? null), "errors", [], "any", true, true, false, 7)) { // line 8 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["validation"]) || array_key_exists("validation", $context) ? $context["validation"] : (function () { throw new RuntimeError('Variable "validation" does not exist.', 8, $this->source); })()), "errors", [], "any", false, false, false, 8)); foreach ($context['_seq'] as $context["_key"] => $context["error"]) { // line 9 yield "
"; // line 10 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["error"], "html", null, true); yield "
"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 13 yield " "; } // line 14 yield " "; // line 15 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["validation"] ?? null), "success", [], "any", true, true, false, 15) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["validation"]) || array_key_exists("validation", $context) ? $context["validation"] : (function () { throw new RuntimeError('Variable "validation" does not exist.', 15, $this->source); })()), "success", [], "any", false, false, false, 15) != false))) { // line 16 yield "
"; // line 17 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["validation"]) || array_key_exists("validation", $context) ? $context["validation"] : (function () { throw new RuntimeError('Variable "validation" does not exist.', 17, $this->source); })()), "success", [], "any", false, false, false, 17), "html", null, true); yield "
"; } // line 20 yield "
"; } } $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/validation.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 95 => 20, 89 => 17, 86 => 16, 84 => 15, 81 => 14, 78 => 13, 69 => 10, 66 => 9, 61 => 8, 59 => 7, 53 => 3, 50 => 2, 48 => 1,); } public function getSourceContext(): Source { return new Source("{% if validation is defined %} {% if validation.errors is defined or validation.success is defined %}
{% if validation.errors is defined %} {% for error in validation.errors %}
{{ error }}
{% endfor %} {% endif %} {% if validation.success is defined and validation.success != false %}
{{ validation.success }}
{% endif %}
{% endif %} {% endif %}", "partials/validation.html.twig", "/var/www/cds-intranet/app/templates/partials/validation.html.twig"); } }