<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* components/organisms/form/form.html.twig */
class __TwigTemplate_6f95848fa842f029fc1410d95f64c15f extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'form' => [$this, 'block_form'],
'formTop' => [$this, 'block_formTop'],
'formColumnMessage' => [$this, 'block_formColumnMessage'],
'formColumn' => [$this, 'block_formColumn'],
'formColumnInner' => [$this, 'block_formColumnInner'],
'formErrors' => [$this, 'block_formErrors'],
'formBottom' => [$this, 'block_formBottom'],
];
}
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", "components/organisms/form/form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/form/form.html.twig"));
// line 1
yield from $this->unwrap()->yieldBlock('form', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_form(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(), "block", "form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form"));
// line 2
yield " <div ";
if (array_key_exists("containerId", $context)) {
yield "id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["containerId"]) || array_key_exists("containerId", $context) ? $context["containerId"] : (function () { throw new RuntimeError('Variable "containerId" does not exist.', 2, $this->source); })()), "html", null, true);
yield "\" ";
}
yield "class=\"";
yield ((array_key_exists("containerClass", $context)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["containerClass"]) || array_key_exists("containerClass", $context) ? $context["containerClass"] : (function () { throw new RuntimeError('Variable "containerClass" does not exist.', 2, $this->source); })()), "html", null, true)) : ("js-ajax-submit-container"));
yield "\">
";
// line 3
yield from $this->unwrap()->yieldBlock('formTop', $context, $blocks);
// line 4
yield "
";
// line 5
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 5, $this->source); })()), 'form_start', ["attr" => ["data-ajax-id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 8
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 8, $this->source); })()), "vars", [], "any", false, false, false, 8), "id", [], "any", false, false, false, 8), "class" => ("form js-ajax-submit " . (( // line 9
array_key_exists("formModifier", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["formModifier"]) || array_key_exists("formModifier", $context) ? $context["formModifier"] : (function () { throw new RuntimeError('Variable "formModifier" does not exist.', 9, $this->source); })()))) : (""))), "data-toast-success" => (((($tmp = (( // line 10
array_key_exists("toastSuccess", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["toastSuccess"]) || array_key_exists("toastSuccess", $context) ? $context["toastSuccess"] : (function () { throw new RuntimeError('Variable "toastSuccess" does not exist.', 10, $this->source); })()))) : (""))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((isset($context["toastSuccess"]) || array_key_exists("toastSuccess", $context) ? $context["toastSuccess"] : (function () { throw new RuntimeError('Variable "toastSuccess" does not exist.', 10, $this->source); })())) : ("")), "data-toast-error" => (((($tmp = (( // line 11
array_key_exists("toastError", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["toastError"]) || array_key_exists("toastError", $context) ? $context["toastError"] : (function () { throw new RuntimeError('Variable "toastError" does not exist.', 11, $this->source); })()))) : (""))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((isset($context["toastError"]) || array_key_exists("toastError", $context) ? $context["toastError"] : (function () { throw new RuntimeError('Variable "toastError" does not exist.', 11, $this->source); })())) : ("")), "data-overlay" => (( // line 12
array_key_exists("overlay", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["overlay"]) || array_key_exists("overlay", $context) ? $context["overlay"] : (function () { throw new RuntimeError('Variable "overlay" does not exist.', 12, $this->source); })()), "false")) : ("false")), "aria-label" => (( // line 13
array_key_exists("ariaLabel", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["ariaLabel"]) || array_key_exists("ariaLabel", $context) ? $context["ariaLabel"] : (function () { throw new RuntimeError('Variable "ariaLabel" does not exist.', 13, $this->source); })()))) : (""))]]);
// line 16
yield "
";
// line 18
if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 18, $this->source); })()), "vars", [], "any", false, false, false, 18), "submitted", [], "any", false, false, false, 18) === true) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 18, $this->source); })()), "vars", [], "any", false, false, false, 18), "valid", [], "any", false, false, false, 18) === true))) {
// line 19
yield " ";
yield from $this->unwrap()->yieldBlock('formColumnMessage', $context, $blocks);
// line 24
yield " ";
}
// line 25
yield "
";
// line 26
yield from $this->unwrap()->yieldBlock('formColumn', $context, $blocks);
// line 33
yield " ";
yield from $this->unwrap()->yieldBlock('formErrors', $context, $blocks);
// line 37
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 37, $this->source); })()), 'form_end');
yield "
";
// line 39
yield from $this->unwrap()->yieldBlock('formBottom', $context, $blocks);
// line 40
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_formTop(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(), "block", "formTop"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formTop"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 19
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_formColumnMessage(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(), "block", "formColumnMessage"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumnMessage"));
// line 20
yield " <div class=\"form__success-message\">
";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("formMessage", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["formMessage"]) || array_key_exists("formMessage", $context) ? $context["formMessage"] : (function () { throw new RuntimeError('Variable "formMessage" does not exist.', 21, $this->source); })()))) : ("")), "html", null, true);
yield "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 26
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_formColumn(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(), "block", "formColumn"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumn"));
// line 27
yield " <div class=\"form__column\">
";
// line 28
yield from $this->unwrap()->yieldBlock('formColumnInner', $context, $blocks);
// line 31
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 28
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_formColumnInner(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(), "block", "formColumnInner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumnInner"));
// line 29
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 29, $this->source); })()), 'widget');
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 33
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_formErrors(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(), "block", "formErrors"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formErrors"));
// line 34
yield " <div class=\"form__errors\">
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 39
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_formBottom(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(), "block", "formBottom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formBottom"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/organisms/form/form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 277 => 39, 264 => 34, 251 => 33, 237 => 29, 224 => 28, 212 => 31, 210 => 28, 207 => 27, 194 => 26, 180 => 21, 177 => 20, 164 => 19, 142 => 3, 130 => 40, 128 => 39, 122 => 37, 119 => 33, 117 => 26, 114 => 25, 111 => 24, 108 => 19, 106 => 18, 102 => 16, 100 => 13, 99 => 12, 98 => 11, 97 => 10, 96 => 9, 95 => 8, 94 => 5, 91 => 4, 89 => 3, 78 => 2, 55 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% block form %}
<div {% if containerId is defined %}id=\"{{ containerId }}\" {% endif %}class=\"{{ containerClass is defined ? containerClass : 'js-ajax-submit-container' }}\">
{% block formTop %}{% endblock %}
{{ form_start(form,
{'attr':
{
'data-ajax-id': form.vars.id,
'class': 'form js-ajax-submit ' ~ formModifier|default,
'data-toast-success': ((toastSuccess|default) ? toastSuccess : ''),
'data-toast-error': ((toastError|default) ? toastError : ''),
'data-overlay': (overlay|default('false')),
'aria-label': ariaLabel|default,
}
}
) }}
{% if form.vars.submitted is same as(true) and form.vars.valid is same as(true) %}
{% block formColumnMessage %}
<div class=\"form__success-message\">
{{ formMessage|default }}
</div>
{% endblock %}
{% endif %}
{% block formColumn %}
<div class=\"form__column\">
{% block formColumnInner %}
{{ form_widget(form) }}
{% endblock %}
</div>
{% endblock %}
{% block formErrors %}
<div class=\"form__errors\">
</div>
{% endblock %}
{{ form_end(form) }}
{% block formBottom %}{% endblock %}
</div>
{% endblock %}
", "components/organisms/form/form.html.twig", "/var/www/html/templates/default/components/organisms/form/form.html.twig");
}
}