var/cache/dev/twig/07/07f286e02eed6c3fd0ca77d4d30c42eb.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* components/organisms/form/form.html.twig */
  16. class __TwigTemplate_6f95848fa842f029fc1410d95f64c15f extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. 'form' => [$this, 'block_form'],
  30. 'formTop' => [$this, 'block_formTop'],
  31. 'formColumnMessage' => [$this, 'block_formColumnMessage'],
  32. 'formColumn' => [$this, 'block_formColumn'],
  33. 'formColumnInner' => [$this, 'block_formColumnInner'],
  34. 'formErrors' => [$this, 'block_formErrors'],
  35. 'formBottom' => [$this, 'block_formBottom'],
  36. ];
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/form/form.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/form/form.html.twig"));
  45. // line 1
  46. yield from $this->unwrap()->yieldBlock('form', $context, $blocks);
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. yield from [];
  50. }
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_form(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form"));
  61. // line 2
  62. yield " <div ";
  63. if (array_key_exists("containerId", $context)) {
  64. yield "id=\"";
  65. 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);
  66. yield "\" ";
  67. }
  68. yield "class=\"";
  69. 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"));
  70. yield "\">
  71. ";
  72. // line 3
  73. yield from $this->unwrap()->yieldBlock('formTop', $context, $blocks);
  74. // line 4
  75. yield "
  76. ";
  77. // line 5
  78. 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
  79. (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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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); })()))) : (""))]]);
  85. // line 16
  86. yield "
  87. ";
  88. // line 18
  89. 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))) {
  90. // line 19
  91. yield " ";
  92. yield from $this->unwrap()->yieldBlock('formColumnMessage', $context, $blocks);
  93. // line 24
  94. yield " ";
  95. }
  96. // line 25
  97. yield "
  98. ";
  99. // line 26
  100. yield from $this->unwrap()->yieldBlock('formColumn', $context, $blocks);
  101. // line 33
  102. yield " ";
  103. yield from $this->unwrap()->yieldBlock('formErrors', $context, $blocks);
  104. // line 37
  105. yield " ";
  106. 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');
  107. yield "
  108. ";
  109. // line 39
  110. yield from $this->unwrap()->yieldBlock('formBottom', $context, $blocks);
  111. // line 40
  112. yield " </div>
  113. ";
  114. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116. yield from [];
  117. }
  118. // line 3
  119. /**
  120. * @return iterable<null|scalar|\Stringable>
  121. */
  122. public function block_formTop(array $context, array $blocks = []): iterable
  123. {
  124. $macros = $this->macros;
  125. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formTop"));
  127. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formTop"));
  129. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131. yield from [];
  132. }
  133. // line 19
  134. /**
  135. * @return iterable<null|scalar|\Stringable>
  136. */
  137. public function block_formColumnMessage(array $context, array $blocks = []): iterable
  138. {
  139. $macros = $this->macros;
  140. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumnMessage"));
  142. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumnMessage"));
  144. // line 20
  145. yield " <div class=\"form__success-message\">
  146. ";
  147. // line 21
  148. 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);
  149. yield "
  150. </div>
  151. ";
  152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154. yield from [];
  155. }
  156. // line 26
  157. /**
  158. * @return iterable<null|scalar|\Stringable>
  159. */
  160. public function block_formColumn(array $context, array $blocks = []): iterable
  161. {
  162. $macros = $this->macros;
  163. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  164. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumn"));
  165. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  166. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumn"));
  167. // line 27
  168. yield " <div class=\"form__column\">
  169. ";
  170. // line 28
  171. yield from $this->unwrap()->yieldBlock('formColumnInner', $context, $blocks);
  172. // line 31
  173. yield " </div>
  174. ";
  175. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  177. yield from [];
  178. }
  179. // line 28
  180. /**
  181. * @return iterable<null|scalar|\Stringable>
  182. */
  183. public function block_formColumnInner(array $context, array $blocks = []): iterable
  184. {
  185. $macros = $this->macros;
  186. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  187. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumnInner"));
  188. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  189. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formColumnInner"));
  190. // line 29
  191. yield " ";
  192. 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');
  193. yield "
  194. ";
  195. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  196. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197. yield from [];
  198. }
  199. // line 33
  200. /**
  201. * @return iterable<null|scalar|\Stringable>
  202. */
  203. public function block_formErrors(array $context, array $blocks = []): iterable
  204. {
  205. $macros = $this->macros;
  206. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  207. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formErrors"));
  208. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  209. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formErrors"));
  210. // line 34
  211. yield " <div class=\"form__errors\">
  212. </div>
  213. ";
  214. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  216. yield from [];
  217. }
  218. // line 39
  219. /**
  220. * @return iterable<null|scalar|\Stringable>
  221. */
  222. public function block_formBottom(array $context, array $blocks = []): iterable
  223. {
  224. $macros = $this->macros;
  225. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  226. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formBottom"));
  227. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  228. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formBottom"));
  229. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  231. yield from [];
  232. }
  233. /**
  234. * @codeCoverageIgnore
  235. */
  236. public function getTemplateName(): string
  237. {
  238. return "components/organisms/form/form.html.twig";
  239. }
  240. /**
  241. * @codeCoverageIgnore
  242. */
  243. public function getDebugInfo(): array
  244. {
  245. 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,);
  246. }
  247. public function getSourceContext(): Source
  248. {
  249. return new Source("{% block form %}
  250. <div {% if containerId is defined %}id=\"{{ containerId }}\" {% endif %}class=\"{{ containerClass is defined ? containerClass : 'js-ajax-submit-container' }}\">
  251. {% block formTop %}{% endblock %}
  252. {{ form_start(form,
  253. {'attr':
  254. {
  255. 'data-ajax-id': form.vars.id,
  256. 'class': 'form js-ajax-submit ' ~ formModifier|default,
  257. 'data-toast-success': ((toastSuccess|default) ? toastSuccess : ''),
  258. 'data-toast-error': ((toastError|default) ? toastError : ''),
  259. 'data-overlay': (overlay|default('false')),
  260. 'aria-label': ariaLabel|default,
  261. }
  262. }
  263. ) }}
  264. {% if form.vars.submitted is same as(true) and form.vars.valid is same as(true) %}
  265. {% block formColumnMessage %}
  266. <div class=\"form__success-message\">
  267. {{ formMessage|default }}
  268. </div>
  269. {% endblock %}
  270. {% endif %}
  271. {% block formColumn %}
  272. <div class=\"form__column\">
  273. {% block formColumnInner %}
  274. {{ form_widget(form) }}
  275. {% endblock %}
  276. </div>
  277. {% endblock %}
  278. {% block formErrors %}
  279. <div class=\"form__errors\">
  280. </div>
  281. {% endblock %}
  282. {{ form_end(form) }}
  283. {% block formBottom %}{% endblock %}
  284. </div>
  285. {% endblock %}
  286. ", "components/organisms/form/form.html.twig", "/var/www/html/templates/default/components/organisms/form/form.html.twig");
  287. }
  288. }