var/cache/dev/twig/33/33e20cd9098558f854581a3ad77e08b8.php line 1748

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. /* form_div_layout.html.twig */
  16. class __TwigTemplate_e5cfc323e062a94b7808f74fafa95efb extends Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate
  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_widget' => [$this, 'block_form_widget'],
  30. 'form_widget_simple' => [$this, 'block_form_widget_simple'],
  31. 'form_widget_compound' => [$this, 'block_form_widget_compound'],
  32. 'collection_widget' => [$this, 'block_collection_widget'],
  33. 'textarea_widget' => [$this, 'block_textarea_widget'],
  34. 'choice_widget' => [$this, 'block_choice_widget'],
  35. 'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
  36. 'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'],
  37. 'choice_widget_options' => [$this, 'block_choice_widget_options'],
  38. 'checkbox_widget' => [$this, 'block_checkbox_widget'],
  39. 'radio_widget' => [$this, 'block_radio_widget'],
  40. 'datetime_widget' => [$this, 'block_datetime_widget'],
  41. 'date_widget' => [$this, 'block_date_widget'],
  42. 'time_widget' => [$this, 'block_time_widget'],
  43. 'dateinterval_widget' => [$this, 'block_dateinterval_widget'],
  44. 'number_widget' => [$this, 'block_number_widget'],
  45. 'integer_widget' => [$this, 'block_integer_widget'],
  46. 'money_widget' => [$this, 'block_money_widget'],
  47. 'url_widget' => [$this, 'block_url_widget'],
  48. 'search_widget' => [$this, 'block_search_widget'],
  49. 'percent_widget' => [$this, 'block_percent_widget'],
  50. 'password_widget' => [$this, 'block_password_widget'],
  51. 'hidden_widget' => [$this, 'block_hidden_widget'],
  52. 'email_widget' => [$this, 'block_email_widget'],
  53. 'range_widget' => [$this, 'block_range_widget'],
  54. 'button_widget' => [$this, 'block_button_widget'],
  55. 'submit_widget' => [$this, 'block_submit_widget'],
  56. 'reset_widget' => [$this, 'block_reset_widget'],
  57. 'tel_widget' => [$this, 'block_tel_widget'],
  58. 'color_widget' => [$this, 'block_color_widget'],
  59. 'week_widget' => [$this, 'block_week_widget'],
  60. 'form_label' => [$this, 'block_form_label'],
  61. 'button_label' => [$this, 'block_button_label'],
  62. 'form_help' => [$this, 'block_form_help'],
  63. 'repeated_row' => [$this, 'block_repeated_row'],
  64. 'form_row' => [$this, 'block_form_row'],
  65. 'button_row' => [$this, 'block_button_row'],
  66. 'hidden_row' => [$this, 'block_hidden_row'],
  67. 'form' => [$this, 'block_form'],
  68. 'form_start' => [$this, 'block_form_start'],
  69. 'form_end' => [$this, 'block_form_end'],
  70. 'form_errors' => [$this, 'block_form_errors'],
  71. 'form_rest' => [$this, 'block_form_rest'],
  72. 'form_rows' => [$this, 'block_form_rows'],
  73. 'widget_attributes' => [$this, 'block_widget_attributes'],
  74. 'widget_container_attributes' => [$this, 'block_widget_container_attributes'],
  75. 'button_attributes' => [$this, 'block_button_attributes'],
  76. 'attributes' => [$this, 'block_attributes'],
  77. ];
  78. }
  79. protected function doDisplay(array $context, array $blocks = []): iterable
  80. {
  81. $macros = $this->macros;
  82. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "form_div_layout.html.twig"));
  84. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "form_div_layout.html.twig"));
  86. // line 3
  87. yield from $this->unwrap()->yieldBlock('form_widget', $context, $blocks);
  88. // line 11
  89. yield from $this->unwrap()->yieldBlock('form_widget_simple', $context, $blocks);
  90. // line 20
  91. yield from $this->unwrap()->yieldBlock('form_widget_compound', $context, $blocks);
  92. // line 30
  93. yield from $this->unwrap()->yieldBlock('collection_widget', $context, $blocks);
  94. // line 37
  95. yield from $this->unwrap()->yieldBlock('textarea_widget', $context, $blocks);
  96. // line 41
  97. yield from $this->unwrap()->yieldBlock('choice_widget', $context, $blocks);
  98. // line 49
  99. yield from $this->unwrap()->yieldBlock('choice_widget_expanded', $context, $blocks);
  100. // line 58
  101. yield from $this->unwrap()->yieldBlock('choice_widget_collapsed', $context, $blocks);
  102. // line 80
  103. yield from $this->unwrap()->yieldBlock('choice_widget_options', $context, $blocks);
  104. // line 93
  105. yield from $this->unwrap()->yieldBlock('checkbox_widget', $context, $blocks);
  106. // line 97
  107. yield from $this->unwrap()->yieldBlock('radio_widget', $context, $blocks);
  108. // line 101
  109. yield from $this->unwrap()->yieldBlock('datetime_widget', $context, $blocks);
  110. // line 114
  111. yield from $this->unwrap()->yieldBlock('date_widget', $context, $blocks);
  112. // line 128
  113. yield from $this->unwrap()->yieldBlock('time_widget', $context, $blocks);
  114. // line 139
  115. yield from $this->unwrap()->yieldBlock('dateinterval_widget', $context, $blocks);
  116. // line 174
  117. yield from $this->unwrap()->yieldBlock('number_widget', $context, $blocks);
  118. // line 180
  119. yield from $this->unwrap()->yieldBlock('integer_widget', $context, $blocks);
  120. // line 185
  121. yield from $this->unwrap()->yieldBlock('money_widget', $context, $blocks);
  122. // line 189
  123. yield from $this->unwrap()->yieldBlock('url_widget', $context, $blocks);
  124. // line 194
  125. yield from $this->unwrap()->yieldBlock('search_widget', $context, $blocks);
  126. // line 199
  127. yield from $this->unwrap()->yieldBlock('percent_widget', $context, $blocks);
  128. // line 204
  129. yield from $this->unwrap()->yieldBlock('password_widget', $context, $blocks);
  130. // line 209
  131. yield from $this->unwrap()->yieldBlock('hidden_widget', $context, $blocks);
  132. // line 214
  133. yield from $this->unwrap()->yieldBlock('email_widget', $context, $blocks);
  134. // line 219
  135. yield from $this->unwrap()->yieldBlock('range_widget', $context, $blocks);
  136. // line 224
  137. yield from $this->unwrap()->yieldBlock('button_widget', $context, $blocks);
  138. // line 252
  139. yield from $this->unwrap()->yieldBlock('submit_widget', $context, $blocks);
  140. // line 257
  141. yield from $this->unwrap()->yieldBlock('reset_widget', $context, $blocks);
  142. // line 262
  143. yield from $this->unwrap()->yieldBlock('tel_widget', $context, $blocks);
  144. // line 267
  145. yield from $this->unwrap()->yieldBlock('color_widget', $context, $blocks);
  146. // line 272
  147. yield from $this->unwrap()->yieldBlock('week_widget', $context, $blocks);
  148. // line 285
  149. yield from $this->unwrap()->yieldBlock('form_label', $context, $blocks);
  150. // line 321
  151. yield from $this->unwrap()->yieldBlock('button_label', $context, $blocks);
  152. // line 324
  153. yield "
  154. ";
  155. // line 325
  156. yield from $this->unwrap()->yieldBlock('form_help', $context, $blocks);
  157. // line 345
  158. yield "
  159. ";
  160. // line 348
  161. yield from $this->unwrap()->yieldBlock('repeated_row', $context, $blocks);
  162. // line 356
  163. yield from $this->unwrap()->yieldBlock('form_row', $context, $blocks);
  164. // line 369
  165. yield from $this->unwrap()->yieldBlock('button_row', $context, $blocks);
  166. // line 375
  167. yield from $this->unwrap()->yieldBlock('hidden_row', $context, $blocks);
  168. // line 381
  169. yield from $this->unwrap()->yieldBlock('form', $context, $blocks);
  170. // line 387
  171. yield from $this->unwrap()->yieldBlock('form_start', $context, $blocks);
  172. // line 401
  173. yield from $this->unwrap()->yieldBlock('form_end', $context, $blocks);
  174. // line 408
  175. yield from $this->unwrap()->yieldBlock('form_errors', $context, $blocks);
  176. // line 418
  177. yield from $this->unwrap()->yieldBlock('form_rest', $context, $blocks);
  178. // line 439
  179. yield "
  180. ";
  181. // line 442
  182. yield from $this->unwrap()->yieldBlock('form_rows', $context, $blocks);
  183. // line 448
  184. yield from $this->unwrap()->yieldBlock('widget_attributes', $context, $blocks);
  185. // line 455
  186. yield from $this->unwrap()->yieldBlock('widget_container_attributes', $context, $blocks);
  187. // line 460
  188. yield from $this->unwrap()->yieldBlock('button_attributes', $context, $blocks);
  189. // line 465
  190. yield from $this->unwrap()->yieldBlock('attributes', $context, $blocks);
  191. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  193. yield from [];
  194. }
  195. // line 3
  196. /**
  197. * @return iterable<null|scalar|\Stringable>
  198. */
  199. public function block_form_widget(array $context, array $blocks = []): iterable
  200. {
  201. $macros = $this->macros;
  202. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  203. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget"));
  204. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  205. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget"));
  206. // line 4
  207. if ((($tmp = (isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 4, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  208. // line 5
  209. yield from $this->unwrap()->yieldBlock("form_widget_compound", $context, $blocks);
  210. } else {
  211. // line 7
  212. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  213. }
  214. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  216. yield from [];
  217. }
  218. // line 11
  219. /**
  220. * @return iterable<null|scalar|\Stringable>
  221. */
  222. public function block_form_widget_simple(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", "form_widget_simple"));
  227. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  228. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_simple"));
  229. // line 12
  230. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 12, $this->source); })()), "text")) : ("text"));
  231. // line 13
  232. if ((((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 13, $this->source); })()) == "range") || ((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 13, $this->source); })()) == "color"))) {
  233. // line 15
  234. $context["required"] = false;
  235. }
  236. // line 17
  237. yield "<input type=\"";
  238. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 17, $this->source); })()), "html", null, true);
  239. yield "\" ";
  240. yield from $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks);
  241. yield " ";
  242. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 17, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  243. yield "value=\"";
  244. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 17, $this->source); })()), "html", null, true);
  245. yield "\" ";
  246. }
  247. yield "/>";
  248. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  249. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  250. yield from [];
  251. }
  252. // line 20
  253. /**
  254. * @return iterable<null|scalar|\Stringable>
  255. */
  256. public function block_form_widget_compound(array $context, array $blocks = []): iterable
  257. {
  258. $macros = $this->macros;
  259. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  260. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_compound"));
  261. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  262. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_compound"));
  263. // line 21
  264. yield "<div ";
  265. yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
  266. yield ">";
  267. // line 22
  268. if (Symfony\Bridge\Twig\Extension\twig_is_root_form((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 22, $this->source); })()))) {
  269. // line 23
  270. 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.', 23, $this->source); })()), 'errors');
  271. }
  272. // line 25
  273. yield from $this->unwrap()->yieldBlock("form_rows", $context, $blocks);
  274. // line 26
  275. 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.', 26, $this->source); })()), 'rest');
  276. // line 27
  277. yield "</div>";
  278. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  279. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  280. yield from [];
  281. }
  282. // line 30
  283. /**
  284. * @return iterable<null|scalar|\Stringable>
  285. */
  286. public function block_collection_widget(array $context, array $blocks = []): iterable
  287. {
  288. $macros = $this->macros;
  289. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  290. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_widget"));
  291. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  292. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_widget"));
  293. // line 31
  294. if ((array_key_exists("prototype", $context) && !Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["prototype"]) || array_key_exists("prototype", $context) ? $context["prototype"] : (function () { throw new RuntimeError('Variable "prototype" does not exist.', 31, $this->source); })()), "rendered", [], "any", false, false, false, 31))) {
  295. // line 32
  296. $context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 32, $this->source); })()), ["data-prototype" => $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["prototype"]) || array_key_exists("prototype", $context) ? $context["prototype"] : (function () { throw new RuntimeError('Variable "prototype" does not exist.', 32, $this->source); })()), 'row')]);
  297. }
  298. // line 34
  299. yield from $this->unwrap()->yieldBlock("form_widget", $context, $blocks);
  300. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  301. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  302. yield from [];
  303. }
  304. // line 37
  305. /**
  306. * @return iterable<null|scalar|\Stringable>
  307. */
  308. public function block_textarea_widget(array $context, array $blocks = []): iterable
  309. {
  310. $macros = $this->macros;
  311. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  312. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "textarea_widget"));
  313. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  314. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "textarea_widget"));
  315. // line 38
  316. yield "<textarea ";
  317. yield from $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks);
  318. yield ">";
  319. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 38, $this->source); })()), "html", null, true);
  320. yield "</textarea>";
  321. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  322. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  323. yield from [];
  324. }
  325. // line 41
  326. /**
  327. * @return iterable<null|scalar|\Stringable>
  328. */
  329. public function block_choice_widget(array $context, array $blocks = []): iterable
  330. {
  331. $macros = $this->macros;
  332. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  333. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget"));
  334. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  335. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget"));
  336. // line 42
  337. if ((($tmp = (isset($context["expanded"]) || array_key_exists("expanded", $context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.', 42, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  338. // line 43
  339. yield from $this->unwrap()->yieldBlock("choice_widget_expanded", $context, $blocks);
  340. } else {
  341. // line 45
  342. yield from $this->unwrap()->yieldBlock("choice_widget_collapsed", $context, $blocks);
  343. }
  344. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  345. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  346. yield from [];
  347. }
  348. // line 49
  349. /**
  350. * @return iterable<null|scalar|\Stringable>
  351. */
  352. public function block_choice_widget_expanded(array $context, array $blocks = []): iterable
  353. {
  354. $macros = $this->macros;
  355. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  356. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_expanded"));
  357. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  358. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_expanded"));
  359. // line 50
  360. yield "<div ";
  361. yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
  362. yield ">";
  363. // line 51
  364. $context['_parent'] = $context;
  365. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 51, $this->source); })()));
  366. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  367. // line 52
  368. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
  369. // line 53
  370. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'label', ["translation_domain" => (isset($context["choice_translation_domain"]) || array_key_exists("choice_translation_domain", $context) ? $context["choice_translation_domain"] : (function () { throw new RuntimeError('Variable "choice_translation_domain" does not exist.', 53, $this->source); })())]);
  371. }
  372. $_parent = $context['_parent'];
  373. unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
  374. $context = array_intersect_key($context, $_parent) + $_parent;
  375. // line 55
  376. yield "</div>";
  377. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  378. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  379. yield from [];
  380. }
  381. // line 58
  382. /**
  383. * @return iterable<null|scalar|\Stringable>
  384. */
  385. public function block_choice_widget_collapsed(array $context, array $blocks = []): iterable
  386. {
  387. $macros = $this->macros;
  388. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  389. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_collapsed"));
  390. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  391. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_collapsed"));
  392. // line 59
  393. if ((((((isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 59, $this->source); })()) && (null === (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 59, $this->source); })()))) && !(isset($context["placeholder_in_choices"]) || array_key_exists("placeholder_in_choices", $context) ? $context["placeholder_in_choices"] : (function () { throw new RuntimeError('Variable "placeholder_in_choices" does not exist.', 59, $this->source); })())) && !(isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 59, $this->source); })())) && ( !Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, ($context["attr"] ?? null), "size", [], "any", true, true, false, 59) || (Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 59, $this->source); })()), "size", [], "any", false, false, false, 59) <= 1)))) {
  394. // line 60
  395. $context["required"] = false;
  396. }
  397. // line 62
  398. yield "<select ";
  399. yield from $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks);
  400. if ((($tmp = (isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 62, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  401. yield " multiple=\"multiple\"";
  402. }
  403. yield ">";
  404. // line 63
  405. if ((($tmp = !(null === (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 63, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  406. // line 64
  407. yield "<option value=\"\"";
  408. if (((isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 64, $this->source); })()) && Twig\Extension\CoreExtension::testEmpty((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 64, $this->source); })())))) {
  409. yield " selected=\"selected\"";
  410. }
  411. yield ">";
  412. yield ((((isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 64, $this->source); })()) != "")) ? (((((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 64, $this->source); })()) === false)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 64, $this->source); })()), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 64, $this->source); })()), [], (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 64, $this->source); })())), "html", null, true)))) : (""));
  413. yield "</option>";
  414. }
  415. // line 66
  416. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["preferred_choices"]) || array_key_exists("preferred_choices", $context) ? $context["preferred_choices"] : (function () { throw new RuntimeError('Variable "preferred_choices" does not exist.', 66, $this->source); })())) > 0)) {
  417. // line 67
  418. $context["options"] = (isset($context["preferred_choices"]) || array_key_exists("preferred_choices", $context) ? $context["preferred_choices"] : (function () { throw new RuntimeError('Variable "preferred_choices" does not exist.', 67, $this->source); })());
  419. // line 68
  420. yield " ";
  421. $context["render_preferred_choices"] = true;
  422. // line 69
  423. yield from $this->unwrap()->yieldBlock("choice_widget_options", $context, $blocks);
  424. // line 70
  425. if (((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["choices"]) || array_key_exists("choices", $context) ? $context["choices"] : (function () { throw new RuntimeError('Variable "choices" does not exist.', 70, $this->source); })())) > 0) && !(null === (isset($context["separator"]) || array_key_exists("separator", $context) ? $context["separator"] : (function () { throw new RuntimeError('Variable "separator" does not exist.', 70, $this->source); })())))) {
  426. // line 71
  427. yield "<option disabled=\"disabled\">";
  428. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["separator"]) || array_key_exists("separator", $context) ? $context["separator"] : (function () { throw new RuntimeError('Variable "separator" does not exist.', 71, $this->source); })()), "html", null, true);
  429. yield "</option>";
  430. }
  431. }
  432. // line 74
  433. $context["options"] = (isset($context["choices"]) || array_key_exists("choices", $context) ? $context["choices"] : (function () { throw new RuntimeError('Variable "choices" does not exist.', 74, $this->source); })());
  434. // line 75
  435. $context["render_preferred_choices"] = false;
  436. // line 76
  437. yield from $this->unwrap()->yieldBlock("choice_widget_options", $context, $blocks);
  438. // line 77
  439. yield "</select>";
  440. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  441. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  442. yield from [];
  443. }
  444. // line 80
  445. /**
  446. * @return iterable<null|scalar|\Stringable>
  447. */
  448. public function block_choice_widget_options(array $context, array $blocks = []): iterable
  449. {
  450. $macros = $this->macros;
  451. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  452. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_options"));
  453. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  454. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_options"));
  455. // line 81
  456. $context['_parent'] = $context;
  457. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 81, $this->source); })()));
  458. $context['loop'] = [
  459. 'parent' => $context['_parent'],
  460. 'index0' => 0,
  461. 'index' => 1,
  462. 'first' => true,
  463. ];
  464. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  465. $length = count($context['_seq']);
  466. $context['loop']['revindex0'] = $length - 1;
  467. $context['loop']['revindex'] = $length;
  468. $context['loop']['length'] = $length;
  469. $context['loop']['last'] = 1 === $length;
  470. }
  471. foreach ($context['_seq'] as $context["group_label"] => $context["choice"]) {
  472. // line 82
  473. if (is_iterable($context["choice"])) {
  474. // line 83
  475. yield "<optgroup label=\"";
  476. yield ((((isset($context["choice_translation_domain"]) || array_key_exists("choice_translation_domain", $context) ? $context["choice_translation_domain"] : (function () { throw new RuntimeError('Variable "choice_translation_domain" does not exist.', 83, $this->source); })()) === false)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["group_label"], "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["group_label"], [], (isset($context["choice_translation_domain"]) || array_key_exists("choice_translation_domain", $context) ? $context["choice_translation_domain"] : (function () { throw new RuntimeError('Variable "choice_translation_domain" does not exist.', 83, $this->source); })())), "html", null, true)));
  477. yield "\">
  478. ";
  479. // line 84
  480. $context["options"] = $context["choice"];
  481. // line 85
  482. yield from $this->unwrap()->yieldBlock("choice_widget_options", $context, $blocks);
  483. // line 86
  484. yield "</optgroup>";
  485. } else {
  486. // line 88
  487. yield "<option value=\"";
  488. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["choice"], "value", [], "any", false, false, false, 88), "html", null, true);
  489. yield "\"";
  490. if ((($tmp = Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["choice"], "attr", [], "any", false, false, false, 88)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  491. $_v0 = $context;
  492. $_v1 = ["attr" => Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["choice"], "attr", [], "any", false, false, false, 88)];
  493. if (!is_iterable($_v1)) {
  494. throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 88, $this->getSourceContext());
  495. }
  496. $_v1 = CoreExtension::toArray($_v1);
  497. $context = $_v1 + $context + $this->env->getGlobals();
  498. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  499. $context = $_v0;
  500. }
  501. if (( !((array_key_exists("render_preferred_choices", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["render_preferred_choices"]) || array_key_exists("render_preferred_choices", $context) ? $context["render_preferred_choices"] : (function () { throw new RuntimeError('Variable "render_preferred_choices" does not exist.', 88, $this->source); })()), false)) : (false)) && Symfony\Bridge\Twig\Extension\twig_is_selected_choice($context["choice"], (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 88, $this->source); })())))) {
  502. yield " selected=\"selected\"";
  503. }
  504. yield ">";
  505. yield ((((isset($context["choice_translation_domain"]) || array_key_exists("choice_translation_domain", $context) ? $context["choice_translation_domain"] : (function () { throw new RuntimeError('Variable "choice_translation_domain" does not exist.', 88, $this->source); })()) === false)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["choice"], "label", [], "any", false, false, false, 88), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["choice"], "label", [], "any", false, false, false, 88), Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["choice"], "labelTranslationParameters", [], "any", false, false, false, 88), (isset($context["choice_translation_domain"]) || array_key_exists("choice_translation_domain", $context) ? $context["choice_translation_domain"] : (function () { throw new RuntimeError('Variable "choice_translation_domain" does not exist.', 88, $this->source); })())), "html", null, true)));
  506. yield "</option>";
  507. }
  508. ++$context['loop']['index0'];
  509. ++$context['loop']['index'];
  510. $context['loop']['first'] = false;
  511. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  512. --$context['loop']['revindex0'];
  513. --$context['loop']['revindex'];
  514. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  515. }
  516. }
  517. $_parent = $context['_parent'];
  518. unset($context['_seq'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
  519. $context = array_intersect_key($context, $_parent) + $_parent;
  520. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  521. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  522. yield from [];
  523. }
  524. // line 93
  525. /**
  526. * @return iterable<null|scalar|\Stringable>
  527. */
  528. public function block_checkbox_widget(array $context, array $blocks = []): iterable
  529. {
  530. $macros = $this->macros;
  531. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  532. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_widget"));
  533. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  534. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_widget"));
  535. // line 94
  536. yield "<input type=\"checkbox\" ";
  537. yield from $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks);
  538. if (array_key_exists("value", $context)) {
  539. yield " value=\"";
  540. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 94, $this->source); })()), "html", null, true);
  541. yield "\"";
  542. }
  543. if ((($tmp = (isset($context["checked"]) || array_key_exists("checked", $context) ? $context["checked"] : (function () { throw new RuntimeError('Variable "checked" does not exist.', 94, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  544. yield " checked=\"checked\"";
  545. }
  546. yield " />";
  547. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  548. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  549. yield from [];
  550. }
  551. // line 97
  552. /**
  553. * @return iterable<null|scalar|\Stringable>
  554. */
  555. public function block_radio_widget(array $context, array $blocks = []): iterable
  556. {
  557. $macros = $this->macros;
  558. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  559. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_widget"));
  560. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  561. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_widget"));
  562. // line 98
  563. yield "<input type=\"radio\" ";
  564. yield from $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks);
  565. if (array_key_exists("value", $context)) {
  566. yield " value=\"";
  567. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 98, $this->source); })()), "html", null, true);
  568. yield "\"";
  569. }
  570. if ((($tmp = (isset($context["checked"]) || array_key_exists("checked", $context) ? $context["checked"] : (function () { throw new RuntimeError('Variable "checked" does not exist.', 98, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  571. yield " checked=\"checked\"";
  572. }
  573. yield " />";
  574. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  575. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  576. yield from [];
  577. }
  578. // line 101
  579. /**
  580. * @return iterable<null|scalar|\Stringable>
  581. */
  582. public function block_datetime_widget(array $context, array $blocks = []): iterable
  583. {
  584. $macros = $this->macros;
  585. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  586. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_widget"));
  587. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  588. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_widget"));
  589. // line 102
  590. if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 102, $this->source); })()) == "single_text")) {
  591. // line 103
  592. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  593. } else {
  594. // line 105
  595. yield "<div ";
  596. yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
  597. yield ">";
  598. // line 106
  599. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 106, $this->source); })()), "date", [], "any", false, false, false, 106), 'errors');
  600. // line 107
  601. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 107, $this->source); })()), "time", [], "any", false, false, false, 107), 'errors');
  602. // line 108
  603. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 108, $this->source); })()), "date", [], "any", false, false, false, 108), 'widget');
  604. // line 109
  605. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 109, $this->source); })()), "time", [], "any", false, false, false, 109), 'widget');
  606. // line 110
  607. yield "</div>";
  608. }
  609. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  610. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  611. yield from [];
  612. }
  613. // line 114
  614. /**
  615. * @return iterable<null|scalar|\Stringable>
  616. */
  617. public function block_date_widget(array $context, array $blocks = []): iterable
  618. {
  619. $macros = $this->macros;
  620. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  621. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_widget"));
  622. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  623. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_widget"));
  624. // line 115
  625. if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 115, $this->source); })()) == "single_text")) {
  626. // line 116
  627. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  628. } else {
  629. // line 118
  630. yield "<div ";
  631. yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
  632. yield ">";
  633. // line 119
  634. yield Twig\Extension\CoreExtension::replace((isset($context["date_pattern"]) || array_key_exists("date_pattern", $context) ? $context["date_pattern"] : (function () { throw new RuntimeError('Variable "date_pattern" does not exist.', 119, $this->source); })()), ["{{ year }}" => // line 120
  635. $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 120, $this->source); })()), "year", [], "any", false, false, false, 120), 'widget'), "{{ month }}" => // line 121
  636. $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 121, $this->source); })()), "month", [], "any", false, false, false, 121), 'widget'), "{{ day }}" => // line 122
  637. $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 122, $this->source); })()), "day", [], "any", false, false, false, 122), 'widget')]);
  638. // line 124
  639. yield "</div>";
  640. }
  641. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  642. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  643. yield from [];
  644. }
  645. // line 128
  646. /**
  647. * @return iterable<null|scalar|\Stringable>
  648. */
  649. public function block_time_widget(array $context, array $blocks = []): iterable
  650. {
  651. $macros = $this->macros;
  652. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  653. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_widget"));
  654. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  655. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_widget"));
  656. // line 129
  657. if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 129, $this->source); })()) == "single_text")) {
  658. // line 130
  659. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  660. } else {
  661. // line 132
  662. $context["vars"] = ((((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 132, $this->source); })()) == "text")) ? (["attr" => ["size" => 1]]) : ([]));
  663. // line 133
  664. yield "<div ";
  665. yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
  666. yield ">
  667. ";
  668. // line 134
  669. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 134, $this->source); })()), "hour", [], "any", false, false, false, 134), 'widget', (isset($context["vars"]) || array_key_exists("vars", $context) ? $context["vars"] : (function () { throw new RuntimeError('Variable "vars" does not exist.', 134, $this->source); })()));
  670. if ((($tmp = (isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 134, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  671. yield ":";
  672. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 134, $this->source); })()), "minute", [], "any", false, false, false, 134), 'widget', (isset($context["vars"]) || array_key_exists("vars", $context) ? $context["vars"] : (function () { throw new RuntimeError('Variable "vars" does not exist.', 134, $this->source); })()));
  673. }
  674. if ((($tmp = (isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 134, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  675. yield ":";
  676. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 134, $this->source); })()), "second", [], "any", false, false, false, 134), 'widget', (isset($context["vars"]) || array_key_exists("vars", $context) ? $context["vars"] : (function () { throw new RuntimeError('Variable "vars" does not exist.', 134, $this->source); })()));
  677. }
  678. // line 135
  679. yield " </div>";
  680. }
  681. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  682. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  683. yield from [];
  684. }
  685. // line 139
  686. /**
  687. * @return iterable<null|scalar|\Stringable>
  688. */
  689. public function block_dateinterval_widget(array $context, array $blocks = []): iterable
  690. {
  691. $macros = $this->macros;
  692. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  693. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dateinterval_widget"));
  694. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  695. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dateinterval_widget"));
  696. // line 140
  697. if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 140, $this->source); })()) == "single_text")) {
  698. // line 141
  699. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  700. } else {
  701. // line 143
  702. yield "<div ";
  703. yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
  704. yield ">";
  705. // line 144
  706. 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.', 144, $this->source); })()), 'errors');
  707. // line 145
  708. yield "<table class=\"";
  709. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("table_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["table_class"]) || array_key_exists("table_class", $context) ? $context["table_class"] : (function () { throw new RuntimeError('Variable "table_class" does not exist.', 145, $this->source); })()), "")) : ("")), "html", null, true);
  710. yield "\" role=\"presentation\">
  711. <thead>
  712. <tr>";
  713. // line 148
  714. if ((($tmp = (isset($context["with_years"]) || array_key_exists("with_years", $context) ? $context["with_years"] : (function () { throw new RuntimeError('Variable "with_years" does not exist.', 148, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  715. yield "<th>";
  716. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 148, $this->source); })()), "years", [], "any", false, false, false, 148), 'label');
  717. yield "</th>";
  718. }
  719. // line 149
  720. if ((($tmp = (isset($context["with_months"]) || array_key_exists("with_months", $context) ? $context["with_months"] : (function () { throw new RuntimeError('Variable "with_months" does not exist.', 149, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  721. yield "<th>";
  722. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 149, $this->source); })()), "months", [], "any", false, false, false, 149), 'label');
  723. yield "</th>";
  724. }
  725. // line 150
  726. if ((($tmp = (isset($context["with_weeks"]) || array_key_exists("with_weeks", $context) ? $context["with_weeks"] : (function () { throw new RuntimeError('Variable "with_weeks" does not exist.', 150, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  727. yield "<th>";
  728. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 150, $this->source); })()), "weeks", [], "any", false, false, false, 150), 'label');
  729. yield "</th>";
  730. }
  731. // line 151
  732. if ((($tmp = (isset($context["with_days"]) || array_key_exists("with_days", $context) ? $context["with_days"] : (function () { throw new RuntimeError('Variable "with_days" does not exist.', 151, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  733. yield "<th>";
  734. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 151, $this->source); })()), "days", [], "any", false, false, false, 151), 'label');
  735. yield "</th>";
  736. }
  737. // line 152
  738. if ((($tmp = (isset($context["with_hours"]) || array_key_exists("with_hours", $context) ? $context["with_hours"] : (function () { throw new RuntimeError('Variable "with_hours" does not exist.', 152, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  739. yield "<th>";
  740. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 152, $this->source); })()), "hours", [], "any", false, false, false, 152), 'label');
  741. yield "</th>";
  742. }
  743. // line 153
  744. if ((($tmp = (isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 153, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  745. yield "<th>";
  746. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 153, $this->source); })()), "minutes", [], "any", false, false, false, 153), 'label');
  747. yield "</th>";
  748. }
  749. // line 154
  750. if ((($tmp = (isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 154, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  751. yield "<th>";
  752. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 154, $this->source); })()), "seconds", [], "any", false, false, false, 154), 'label');
  753. yield "</th>";
  754. }
  755. // line 155
  756. yield "</tr>
  757. </thead>
  758. <tbody>
  759. <tr>";
  760. // line 159
  761. if ((($tmp = (isset($context["with_years"]) || array_key_exists("with_years", $context) ? $context["with_years"] : (function () { throw new RuntimeError('Variable "with_years" does not exist.', 159, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  762. yield "<td>";
  763. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 159, $this->source); })()), "years", [], "any", false, false, false, 159), 'widget');
  764. yield "</td>";
  765. }
  766. // line 160
  767. if ((($tmp = (isset($context["with_months"]) || array_key_exists("with_months", $context) ? $context["with_months"] : (function () { throw new RuntimeError('Variable "with_months" does not exist.', 160, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  768. yield "<td>";
  769. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 160, $this->source); })()), "months", [], "any", false, false, false, 160), 'widget');
  770. yield "</td>";
  771. }
  772. // line 161
  773. if ((($tmp = (isset($context["with_weeks"]) || array_key_exists("with_weeks", $context) ? $context["with_weeks"] : (function () { throw new RuntimeError('Variable "with_weeks" does not exist.', 161, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  774. yield "<td>";
  775. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 161, $this->source); })()), "weeks", [], "any", false, false, false, 161), 'widget');
  776. yield "</td>";
  777. }
  778. // line 162
  779. if ((($tmp = (isset($context["with_days"]) || array_key_exists("with_days", $context) ? $context["with_days"] : (function () { throw new RuntimeError('Variable "with_days" does not exist.', 162, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  780. yield "<td>";
  781. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 162, $this->source); })()), "days", [], "any", false, false, false, 162), 'widget');
  782. yield "</td>";
  783. }
  784. // line 163
  785. if ((($tmp = (isset($context["with_hours"]) || array_key_exists("with_hours", $context) ? $context["with_hours"] : (function () { throw new RuntimeError('Variable "with_hours" does not exist.', 163, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  786. yield "<td>";
  787. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 163, $this->source); })()), "hours", [], "any", false, false, false, 163), 'widget');
  788. yield "</td>";
  789. }
  790. // line 164
  791. if ((($tmp = (isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 164, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  792. yield "<td>";
  793. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 164, $this->source); })()), "minutes", [], "any", false, false, false, 164), 'widget');
  794. yield "</td>";
  795. }
  796. // line 165
  797. if ((($tmp = (isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 165, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  798. yield "<td>";
  799. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 165, $this->source); })()), "seconds", [], "any", false, false, false, 165), 'widget');
  800. yield "</td>";
  801. }
  802. // line 166
  803. yield "</tr>
  804. </tbody>
  805. </table>";
  806. // line 169
  807. if ((($tmp = (isset($context["with_invert"]) || array_key_exists("with_invert", $context) ? $context["with_invert"] : (function () { throw new RuntimeError('Variable "with_invert" does not exist.', 169, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  808. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 169, $this->source); })()), "invert", [], "any", false, false, false, 169), 'widget');
  809. }
  810. // line 170
  811. yield "</div>";
  812. }
  813. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  814. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  815. yield from [];
  816. }
  817. // line 174
  818. /**
  819. * @return iterable<null|scalar|\Stringable>
  820. */
  821. public function block_number_widget(array $context, array $blocks = []): iterable
  822. {
  823. $macros = $this->macros;
  824. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  825. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "number_widget"));
  826. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  827. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "number_widget"));
  828. // line 176
  829. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 176, $this->source); })()), "text")) : ("text"));
  830. // line 177
  831. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  832. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  833. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  834. yield from [];
  835. }
  836. // line 180
  837. /**
  838. * @return iterable<null|scalar|\Stringable>
  839. */
  840. public function block_integer_widget(array $context, array $blocks = []): iterable
  841. {
  842. $macros = $this->macros;
  843. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  844. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "integer_widget"));
  845. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  846. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "integer_widget"));
  847. // line 181
  848. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 181, $this->source); })()), "number")) : ("number"));
  849. // line 182
  850. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  851. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  852. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  853. yield from [];
  854. }
  855. // line 185
  856. /**
  857. * @return iterable<null|scalar|\Stringable>
  858. */
  859. public function block_money_widget(array $context, array $blocks = []): iterable
  860. {
  861. $macros = $this->macros;
  862. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  863. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "money_widget"));
  864. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  865. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "money_widget"));
  866. // line 186
  867. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env, (isset($context["money_pattern"]) || array_key_exists("money_pattern", $context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.', 186, $this->source); })()), $this->unwrap()->renderBlock("form_widget_simple", $context, $blocks));
  868. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  869. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  870. yield from [];
  871. }
  872. // line 189
  873. /**
  874. * @return iterable<null|scalar|\Stringable>
  875. */
  876. public function block_url_widget(array $context, array $blocks = []): iterable
  877. {
  878. $macros = $this->macros;
  879. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  880. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "url_widget"));
  881. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  882. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "url_widget"));
  883. // line 190
  884. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 190, $this->source); })()), "url")) : ("url"));
  885. // line 191
  886. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  887. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  888. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  889. yield from [];
  890. }
  891. // line 194
  892. /**
  893. * @return iterable<null|scalar|\Stringable>
  894. */
  895. public function block_search_widget(array $context, array $blocks = []): iterable
  896. {
  897. $macros = $this->macros;
  898. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  899. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "search_widget"));
  900. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  901. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "search_widget"));
  902. // line 195
  903. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 195, $this->source); })()), "search")) : ("search"));
  904. // line 196
  905. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  906. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  907. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  908. yield from [];
  909. }
  910. // line 199
  911. /**
  912. * @return iterable<null|scalar|\Stringable>
  913. */
  914. public function block_percent_widget(array $context, array $blocks = []): iterable
  915. {
  916. $macros = $this->macros;
  917. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  918. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "percent_widget"));
  919. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  920. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "percent_widget"));
  921. // line 200
  922. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 200, $this->source); })()), "text")) : ("text"));
  923. // line 201
  924. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  925. if ((($tmp = (isset($context["symbol"]) || array_key_exists("symbol", $context) ? $context["symbol"] : (function () { throw new RuntimeError('Variable "symbol" does not exist.', 201, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  926. yield " ";
  927. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("symbol", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["symbol"]) || array_key_exists("symbol", $context) ? $context["symbol"] : (function () { throw new RuntimeError('Variable "symbol" does not exist.', 201, $this->source); })()), "%")) : ("%")), "html", null, true);
  928. }
  929. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  930. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  931. yield from [];
  932. }
  933. // line 204
  934. /**
  935. * @return iterable<null|scalar|\Stringable>
  936. */
  937. public function block_password_widget(array $context, array $blocks = []): iterable
  938. {
  939. $macros = $this->macros;
  940. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  941. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "password_widget"));
  942. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  943. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "password_widget"));
  944. // line 205
  945. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 205, $this->source); })()), "password")) : ("password"));
  946. // line 206
  947. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  948. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  949. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  950. yield from [];
  951. }
  952. // line 209
  953. /**
  954. * @return iterable<null|scalar|\Stringable>
  955. */
  956. public function block_hidden_widget(array $context, array $blocks = []): iterable
  957. {
  958. $macros = $this->macros;
  959. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  960. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hidden_widget"));
  961. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  962. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hidden_widget"));
  963. // line 210
  964. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 210, $this->source); })()), "hidden")) : ("hidden"));
  965. // line 211
  966. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  967. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  968. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  969. yield from [];
  970. }
  971. // line 214
  972. /**
  973. * @return iterable<null|scalar|\Stringable>
  974. */
  975. public function block_email_widget(array $context, array $blocks = []): iterable
  976. {
  977. $macros = $this->macros;
  978. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  979. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "email_widget"));
  980. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  981. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "email_widget"));
  982. // line 215
  983. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 215, $this->source); })()), "email")) : ("email"));
  984. // line 216
  985. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  986. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  987. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  988. yield from [];
  989. }
  990. // line 219
  991. /**
  992. * @return iterable<null|scalar|\Stringable>
  993. */
  994. public function block_range_widget(array $context, array $blocks = []): iterable
  995. {
  996. $macros = $this->macros;
  997. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  998. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "range_widget"));
  999. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1000. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "range_widget"));
  1001. // line 220
  1002. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 220, $this->source); })()), "range")) : ("range"));
  1003. // line 221
  1004. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  1005. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1006. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1007. yield from [];
  1008. }
  1009. // line 224
  1010. /**
  1011. * @return iterable<null|scalar|\Stringable>
  1012. */
  1013. public function block_button_widget(array $context, array $blocks = []): iterable
  1014. {
  1015. $macros = $this->macros;
  1016. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1017. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_widget"));
  1018. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1019. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_widget"));
  1020. // line 225
  1021. if (Twig\Extension\CoreExtension::testEmpty((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 225, $this->source); })()))) {
  1022. // line 226
  1023. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 226, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1024. // line 227
  1025. $context["label"] = Twig\Extension\CoreExtension::replace((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 227, $this->source); })()), ["%name%" => // line 228
  1026. (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 228, $this->source); })()), "%id%" => // line 229
  1027. (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 229, $this->source); })())]);
  1028. } elseif ((($tmp = !( // line 231
  1029. (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 231, $this->source); })()) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1030. // line 232
  1031. $context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 232, $this->source); })()));
  1032. }
  1033. }
  1034. // line 235
  1035. yield "<button type=\"";
  1036. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 235, $this->source); })()), "button")) : ("button")), "html", null, true);
  1037. yield "\" ";
  1038. yield from $this->unwrap()->yieldBlock("button_attributes", $context, $blocks);
  1039. yield ">";
  1040. // line 236
  1041. if (((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 236, $this->source); })()) === false)) {
  1042. // line 237
  1043. if (((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 237, $this->source); })()) === false)) {
  1044. // line 238
  1045. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 238, $this->source); })()), "html", null, true);
  1046. } else {
  1047. // line 240
  1048. yield (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 240, $this->source); })());
  1049. }
  1050. } else {
  1051. // line 243
  1052. if (((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 243, $this->source); })()) === false)) {
  1053. // line 244
  1054. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 244, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 244, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 244, $this->source); })())), "html", null, true);
  1055. } else {
  1056. // line 246
  1057. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 246, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 246, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 246, $this->source); })()));
  1058. }
  1059. }
  1060. // line 249
  1061. yield "</button>";
  1062. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1063. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1064. yield from [];
  1065. }
  1066. // line 252
  1067. /**
  1068. * @return iterable<null|scalar|\Stringable>
  1069. */
  1070. public function block_submit_widget(array $context, array $blocks = []): iterable
  1071. {
  1072. $macros = $this->macros;
  1073. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1074. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "submit_widget"));
  1075. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1076. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "submit_widget"));
  1077. // line 253
  1078. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 253, $this->source); })()), "submit")) : ("submit"));
  1079. // line 254
  1080. yield from $this->unwrap()->yieldBlock("button_widget", $context, $blocks);
  1081. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1082. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1083. yield from [];
  1084. }
  1085. // line 257
  1086. /**
  1087. * @return iterable<null|scalar|\Stringable>
  1088. */
  1089. public function block_reset_widget(array $context, array $blocks = []): iterable
  1090. {
  1091. $macros = $this->macros;
  1092. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1093. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "reset_widget"));
  1094. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1095. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "reset_widget"));
  1096. // line 258
  1097. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 258, $this->source); })()), "reset")) : ("reset"));
  1098. // line 259
  1099. yield from $this->unwrap()->yieldBlock("button_widget", $context, $blocks);
  1100. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1101. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1102. yield from [];
  1103. }
  1104. // line 262
  1105. /**
  1106. * @return iterable<null|scalar|\Stringable>
  1107. */
  1108. public function block_tel_widget(array $context, array $blocks = []): iterable
  1109. {
  1110. $macros = $this->macros;
  1111. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1112. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tel_widget"));
  1113. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1114. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tel_widget"));
  1115. // line 263
  1116. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 263, $this->source); })()), "tel")) : ("tel"));
  1117. // line 264
  1118. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  1119. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1120. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1121. yield from [];
  1122. }
  1123. // line 267
  1124. /**
  1125. * @return iterable<null|scalar|\Stringable>
  1126. */
  1127. public function block_color_widget(array $context, array $blocks = []): iterable
  1128. {
  1129. $macros = $this->macros;
  1130. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1131. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "color_widget"));
  1132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1133. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "color_widget"));
  1134. // line 268
  1135. $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 268, $this->source); })()), "color")) : ("color"));
  1136. // line 269
  1137. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  1138. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1139. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1140. yield from [];
  1141. }
  1142. // line 272
  1143. /**
  1144. * @return iterable<null|scalar|\Stringable>
  1145. */
  1146. public function block_week_widget(array $context, array $blocks = []): iterable
  1147. {
  1148. $macros = $this->macros;
  1149. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1150. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "week_widget"));
  1151. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "week_widget"));
  1153. // line 273
  1154. if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 273, $this->source); })()) == "single_text")) {
  1155. // line 274
  1156. yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
  1157. } else {
  1158. // line 276
  1159. $context["vars"] = ((((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 276, $this->source); })()) == "text")) ? (["attr" => ["size" => 1]]) : ([]));
  1160. // line 277
  1161. yield "<div ";
  1162. yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
  1163. yield ">
  1164. ";
  1165. // line 278
  1166. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 278, $this->source); })()), "year", [], "any", false, false, false, 278), 'widget', (isset($context["vars"]) || array_key_exists("vars", $context) ? $context["vars"] : (function () { throw new RuntimeError('Variable "vars" does not exist.', 278, $this->source); })()));
  1167. yield "-";
  1168. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 278, $this->source); })()), "week", [], "any", false, false, false, 278), 'widget', (isset($context["vars"]) || array_key_exists("vars", $context) ? $context["vars"] : (function () { throw new RuntimeError('Variable "vars" does not exist.', 278, $this->source); })()));
  1169. yield "
  1170. </div>";
  1171. }
  1172. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1173. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1174. yield from [];
  1175. }
  1176. // line 285
  1177. /**
  1178. * @return iterable<null|scalar|\Stringable>
  1179. */
  1180. public function block_form_label(array $context, array $blocks = []): iterable
  1181. {
  1182. $macros = $this->macros;
  1183. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1184. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_label"));
  1185. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1186. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_label"));
  1187. // line 286
  1188. if ((($tmp = !((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 286, $this->source); })()) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1189. // line 287
  1190. if ((($tmp = !(isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 287, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1191. // line 288
  1192. $context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 288, $this->source); })()), ["for" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 288, $this->source); })())]);
  1193. }
  1194. // line 290
  1195. if ((($tmp = (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 290, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1196. // line 291
  1197. $context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 291, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 291)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 291, $this->source); })()), "class", [], "any", false, false, false, 291), "")) : ("")) . " required"))]);
  1198. }
  1199. // line 293
  1200. if (Twig\Extension\CoreExtension::testEmpty((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 293, $this->source); })()))) {
  1201. // line 294
  1202. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 294, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1203. // line 295
  1204. $context["label"] = Twig\Extension\CoreExtension::replace((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 295, $this->source); })()), ["%name%" => // line 296
  1205. (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 296, $this->source); })()), "%id%" => // line 297
  1206. (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 297, $this->source); })())]);
  1207. } else {
  1208. // line 300
  1209. $context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 300, $this->source); })()));
  1210. }
  1211. }
  1212. // line 303
  1213. yield "<";
  1214. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("element", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 303, $this->source); })()), "label")) : ("label")), "html", null, true);
  1215. if ((($tmp = (isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 303, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1216. $_v2 = $context;
  1217. $_v3 = ["attr" => (isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 303, $this->source); })())];
  1218. if (!is_iterable($_v3)) {
  1219. throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 303, $this->getSourceContext());
  1220. }
  1221. $_v3 = CoreExtension::toArray($_v3);
  1222. $context = $_v3 + $context + $this->env->getGlobals();
  1223. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1224. $context = $_v2;
  1225. }
  1226. yield ">";
  1227. // line 304
  1228. if (((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 304, $this->source); })()) === false)) {
  1229. // line 305
  1230. if (((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 305, $this->source); })()) === false)) {
  1231. // line 306
  1232. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 306, $this->source); })()), "html", null, true);
  1233. } else {
  1234. // line 308
  1235. yield (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 308, $this->source); })());
  1236. }
  1237. } else {
  1238. // line 311
  1239. if (((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 311, $this->source); })()) === false)) {
  1240. // line 312
  1241. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 312, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 312, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 312, $this->source); })())), "html", null, true);
  1242. } else {
  1243. // line 314
  1244. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 314, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 314, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 314, $this->source); })()));
  1245. }
  1246. }
  1247. // line 317
  1248. yield "</";
  1249. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("element", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 317, $this->source); })()), "label")) : ("label")), "html", null, true);
  1250. yield ">";
  1251. }
  1252. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1253. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1254. yield from [];
  1255. }
  1256. // line 321
  1257. /**
  1258. * @return iterable<null|scalar|\Stringable>
  1259. */
  1260. public function block_button_label(array $context, array $blocks = []): iterable
  1261. {
  1262. $macros = $this->macros;
  1263. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1264. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_label"));
  1265. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1266. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_label"));
  1267. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1268. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1269. yield from [];
  1270. }
  1271. // line 325
  1272. /**
  1273. * @return iterable<null|scalar|\Stringable>
  1274. */
  1275. public function block_form_help(array $context, array $blocks = []): iterable
  1276. {
  1277. $macros = $this->macros;
  1278. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1279. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_help"));
  1280. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1281. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_help"));
  1282. // line 326
  1283. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 326, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1284. // line 327
  1285. $context["help_attr"] = Twig\Extension\CoreExtension::merge((isset($context["help_attr"]) || array_key_exists("help_attr", $context) ? $context["help_attr"] : (function () { throw new RuntimeError('Variable "help_attr" does not exist.', 327, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", true, true, false, 327)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["help_attr"]) || array_key_exists("help_attr", $context) ? $context["help_attr"] : (function () { throw new RuntimeError('Variable "help_attr" does not exist.', 327, $this->source); })()), "class", [], "any", false, false, false, 327), "")) : ("")) . " help-text"))]);
  1286. // line 328
  1287. yield "<p id=\"";
  1288. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 328, $this->source); })()), "html", null, true);
  1289. yield "_help\"";
  1290. $_v4 = $context;
  1291. $_v5 = ["attr" => (isset($context["help_attr"]) || array_key_exists("help_attr", $context) ? $context["help_attr"] : (function () { throw new RuntimeError('Variable "help_attr" does not exist.', 328, $this->source); })())];
  1292. if (!is_iterable($_v5)) {
  1293. throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 328, $this->getSourceContext());
  1294. }
  1295. $_v5 = CoreExtension::toArray($_v5);
  1296. $context = $_v5 + $context + $this->env->getGlobals();
  1297. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1298. $context = $_v4;
  1299. yield ">";
  1300. // line 329
  1301. if (((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 329, $this->source); })()) === false)) {
  1302. // line 330
  1303. if (((isset($context["help_html"]) || array_key_exists("help_html", $context) ? $context["help_html"] : (function () { throw new RuntimeError('Variable "help_html" does not exist.', 330, $this->source); })()) === false)) {
  1304. // line 331
  1305. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 331, $this->source); })()), "html", null, true);
  1306. } else {
  1307. // line 333
  1308. yield (isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 333, $this->source); })());
  1309. }
  1310. } else {
  1311. // line 336
  1312. if (((isset($context["help_html"]) || array_key_exists("help_html", $context) ? $context["help_html"] : (function () { throw new RuntimeError('Variable "help_html" does not exist.', 336, $this->source); })()) === false)) {
  1313. // line 337
  1314. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 337, $this->source); })()), (isset($context["help_translation_parameters"]) || array_key_exists("help_translation_parameters", $context) ? $context["help_translation_parameters"] : (function () { throw new RuntimeError('Variable "help_translation_parameters" does not exist.', 337, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 337, $this->source); })())), "html", null, true);
  1315. } else {
  1316. // line 339
  1317. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 339, $this->source); })()), (isset($context["help_translation_parameters"]) || array_key_exists("help_translation_parameters", $context) ? $context["help_translation_parameters"] : (function () { throw new RuntimeError('Variable "help_translation_parameters" does not exist.', 339, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 339, $this->source); })()));
  1318. }
  1319. }
  1320. // line 342
  1321. yield "</p>";
  1322. }
  1323. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1324. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1325. yield from [];
  1326. }
  1327. // line 348
  1328. /**
  1329. * @return iterable<null|scalar|\Stringable>
  1330. */
  1331. public function block_repeated_row(array $context, array $blocks = []): iterable
  1332. {
  1333. $macros = $this->macros;
  1334. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1335. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "repeated_row"));
  1336. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1337. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "repeated_row"));
  1338. // line 353
  1339. yield from $this->unwrap()->yieldBlock("form_rows", $context, $blocks);
  1340. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1341. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1342. yield from [];
  1343. }
  1344. // line 356
  1345. /**
  1346. * @return iterable<null|scalar|\Stringable>
  1347. */
  1348. public function block_form_row(array $context, array $blocks = []): iterable
  1349. {
  1350. $macros = $this->macros;
  1351. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1352. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_row"));
  1353. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1354. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_row"));
  1355. // line 357
  1356. $context["widget_attr"] = [];
  1357. // line 358
  1358. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 358, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1359. // line 359
  1360. $context["widget_attr"] = ["attr" => ["aria-describedby" => ((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 359, $this->source); })()) . "_help")]];
  1361. }
  1362. // line 361
  1363. yield "<div";
  1364. $_v6 = $context;
  1365. $_v7 = ["attr" => (isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 361, $this->source); })())];
  1366. if (!is_iterable($_v7)) {
  1367. throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 361, $this->getSourceContext());
  1368. }
  1369. $_v7 = CoreExtension::toArray($_v7);
  1370. $context = $_v7 + $context + $this->env->getGlobals();
  1371. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1372. $context = $_v6;
  1373. yield ">";
  1374. // line 362
  1375. 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.', 362, $this->source); })()), 'label');
  1376. // line 363
  1377. 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.', 363, $this->source); })()), 'errors');
  1378. // line 364
  1379. 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.', 364, $this->source); })()), 'widget', (isset($context["widget_attr"]) || array_key_exists("widget_attr", $context) ? $context["widget_attr"] : (function () { throw new RuntimeError('Variable "widget_attr" does not exist.', 364, $this->source); })()));
  1380. // line 365
  1381. 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.', 365, $this->source); })()), 'help');
  1382. // line 366
  1383. yield "</div>";
  1384. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1385. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1386. yield from [];
  1387. }
  1388. // line 369
  1389. /**
  1390. * @return iterable<null|scalar|\Stringable>
  1391. */
  1392. public function block_button_row(array $context, array $blocks = []): iterable
  1393. {
  1394. $macros = $this->macros;
  1395. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1396. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_row"));
  1397. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1398. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_row"));
  1399. // line 370
  1400. yield "<div";
  1401. $_v8 = $context;
  1402. $_v9 = ["attr" => (isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 370, $this->source); })())];
  1403. if (!is_iterable($_v9)) {
  1404. throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 370, $this->getSourceContext());
  1405. }
  1406. $_v9 = CoreExtension::toArray($_v9);
  1407. $context = $_v9 + $context + $this->env->getGlobals();
  1408. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1409. $context = $_v8;
  1410. yield ">";
  1411. // line 371
  1412. 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.', 371, $this->source); })()), 'widget');
  1413. // line 372
  1414. yield "</div>";
  1415. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1416. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1417. yield from [];
  1418. }
  1419. // line 375
  1420. /**
  1421. * @return iterable<null|scalar|\Stringable>
  1422. */
  1423. public function block_hidden_row(array $context, array $blocks = []): iterable
  1424. {
  1425. $macros = $this->macros;
  1426. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1427. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hidden_row"));
  1428. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1429. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hidden_row"));
  1430. // line 376
  1431. 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.', 376, $this->source); })()), 'widget');
  1432. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1433. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1434. yield from [];
  1435. }
  1436. // line 381
  1437. /**
  1438. * @return iterable<null|scalar|\Stringable>
  1439. */
  1440. public function block_form(array $context, array $blocks = []): iterable
  1441. {
  1442. $macros = $this->macros;
  1443. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1444. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form"));
  1445. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1446. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form"));
  1447. // line 382
  1448. 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.', 382, $this->source); })()), 'form_start');
  1449. // line 383
  1450. 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.', 383, $this->source); })()), 'widget');
  1451. // line 384
  1452. 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.', 384, $this->source); })()), 'form_end');
  1453. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1454. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1455. yield from [];
  1456. }
  1457. // line 387
  1458. /**
  1459. * @return iterable<null|scalar|\Stringable>
  1460. */
  1461. public function block_form_start(array $context, array $blocks = []): iterable
  1462. {
  1463. $macros = $this->macros;
  1464. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1465. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_start"));
  1466. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1467. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_start"));
  1468. // line 388
  1469. Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 388, $this->source); })()), "setMethodRendered", [], "method", false, false, false, 388);
  1470. // line 389
  1471. $context["method"] = Twig\Extension\CoreExtension::upper($this->env->getCharset(), (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 389, $this->source); })()));
  1472. // line 390
  1473. if (CoreExtension::inFilter((isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 390, $this->source); })()), ["GET", "POST"])) {
  1474. // line 391
  1475. $context["form_method"] = (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 391, $this->source); })());
  1476. } else {
  1477. // line 393
  1478. $context["form_method"] = "POST";
  1479. }
  1480. // line 395
  1481. yield "<form";
  1482. if (((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 395, $this->source); })()) != "")) {
  1483. yield " name=\"";
  1484. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 395, $this->source); })()), "html", null, true);
  1485. yield "\"";
  1486. }
  1487. yield " method=\"";
  1488. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), (isset($context["form_method"]) || array_key_exists("form_method", $context) ? $context["form_method"] : (function () { throw new RuntimeError('Variable "form_method" does not exist.', 395, $this->source); })())), "html", null, true);
  1489. yield "\"";
  1490. if (((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 395, $this->source); })()) != "")) {
  1491. yield " action=\"";
  1492. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 395, $this->source); })()), "html", null, true);
  1493. yield "\"";
  1494. }
  1495. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1496. if ((($tmp = (isset($context["multipart"]) || array_key_exists("multipart", $context) ? $context["multipart"] : (function () { throw new RuntimeError('Variable "multipart" does not exist.', 395, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1497. yield " enctype=\"multipart/form-data\"";
  1498. }
  1499. yield ">";
  1500. // line 396
  1501. if (((isset($context["form_method"]) || array_key_exists("form_method", $context) ? $context["form_method"] : (function () { throw new RuntimeError('Variable "form_method" does not exist.', 396, $this->source); })()) != (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 396, $this->source); })()))) {
  1502. // line 397
  1503. yield "<input type=\"hidden\" name=\"_method\" value=\"";
  1504. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 397, $this->source); })()), "html", null, true);
  1505. yield "\" />";
  1506. }
  1507. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1508. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1509. yield from [];
  1510. }
  1511. // line 401
  1512. /**
  1513. * @return iterable<null|scalar|\Stringable>
  1514. */
  1515. public function block_form_end(array $context, array $blocks = []): iterable
  1516. {
  1517. $macros = $this->macros;
  1518. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1519. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_end"));
  1520. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1521. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_end"));
  1522. // line 402
  1523. if (( !array_key_exists("render_rest", $context) || (isset($context["render_rest"]) || array_key_exists("render_rest", $context) ? $context["render_rest"] : (function () { throw new RuntimeError('Variable "render_rest" does not exist.', 402, $this->source); })()))) {
  1524. // line 403
  1525. 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.', 403, $this->source); })()), 'rest');
  1526. }
  1527. // line 405
  1528. yield "</form>";
  1529. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1530. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1531. yield from [];
  1532. }
  1533. // line 408
  1534. /**
  1535. * @return iterable<null|scalar|\Stringable>
  1536. */
  1537. public function block_form_errors(array $context, array $blocks = []): iterable
  1538. {
  1539. $macros = $this->macros;
  1540. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1541. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_errors"));
  1542. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1543. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_errors"));
  1544. // line 409
  1545. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 409, $this->source); })())) > 0)) {
  1546. // line 410
  1547. yield "<ul>";
  1548. // line 411
  1549. $context['_parent'] = $context;
  1550. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 411, $this->source); })()));
  1551. foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  1552. // line 412
  1553. yield "<li>";
  1554. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 412), "html", null, true);
  1555. yield "</li>";
  1556. }
  1557. $_parent = $context['_parent'];
  1558. unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
  1559. $context = array_intersect_key($context, $_parent) + $_parent;
  1560. // line 414
  1561. yield "</ul>";
  1562. }
  1563. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1564. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1565. yield from [];
  1566. }
  1567. // line 418
  1568. /**
  1569. * @return iterable<null|scalar|\Stringable>
  1570. */
  1571. public function block_form_rest(array $context, array $blocks = []): iterable
  1572. {
  1573. $macros = $this->macros;
  1574. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1575. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_rest"));
  1576. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1577. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_rest"));
  1578. // line 419
  1579. $context['_parent'] = $context;
  1580. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 419, $this->source); })()));
  1581. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  1582. // line 420
  1583. if ((($tmp = !Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["child"], "rendered", [], "any", false, false, false, 420)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1584. // line 421
  1585. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row');
  1586. }
  1587. }
  1588. $_parent = $context['_parent'];
  1589. unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
  1590. $context = array_intersect_key($context, $_parent) + $_parent;
  1591. // line 425
  1592. if (( !Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 425, $this->source); })()), "methodRendered", [], "any", false, false, false, 425) && Symfony\Bridge\Twig\Extension\twig_is_root_form((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 425, $this->source); })())))) {
  1593. // line 426
  1594. Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 426, $this->source); })()), "setMethodRendered", [], "method", false, false, false, 426);
  1595. // line 427
  1596. $context["method"] = Twig\Extension\CoreExtension::upper($this->env->getCharset(), (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 427, $this->source); })()));
  1597. // line 428
  1598. if (CoreExtension::inFilter((isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 428, $this->source); })()), ["GET", "POST"])) {
  1599. // line 429
  1600. $context["form_method"] = (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 429, $this->source); })());
  1601. } else {
  1602. // line 431
  1603. $context["form_method"] = "POST";
  1604. }
  1605. // line 434
  1606. if (((isset($context["form_method"]) || array_key_exists("form_method", $context) ? $context["form_method"] : (function () { throw new RuntimeError('Variable "form_method" does not exist.', 434, $this->source); })()) != (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 434, $this->source); })()))) {
  1607. // line 435
  1608. yield "<input type=\"hidden\" name=\"_method\" value=\"";
  1609. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 435, $this->source); })()), "html", null, true);
  1610. yield "\" />";
  1611. }
  1612. }
  1613. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1614. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1615. yield from [];
  1616. }
  1617. // line 442
  1618. /**
  1619. * @return iterable<null|scalar|\Stringable>
  1620. */
  1621. public function block_form_rows(array $context, array $blocks = []): iterable
  1622. {
  1623. $macros = $this->macros;
  1624. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1625. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_rows"));
  1626. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1627. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_rows"));
  1628. // line 443
  1629. $context['_parent'] = $context;
  1630. $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->env, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 443, $this->source); })()), function ($__child__) use ($context, $macros) { $context["child"] = $__child__; return !Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, $context["child"], "rendered", [], "any", false, false, false, 443); }));
  1631. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  1632. // line 444
  1633. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row');
  1634. }
  1635. $_parent = $context['_parent'];
  1636. unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
  1637. $context = array_intersect_key($context, $_parent) + $_parent;
  1638. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1639. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1640. yield from [];
  1641. }
  1642. // line 448
  1643. /**
  1644. * @return iterable<null|scalar|\Stringable>
  1645. */
  1646. public function block_widget_attributes(array $context, array $blocks = []): iterable
  1647. {
  1648. $macros = $this->macros;
  1649. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1650. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "widget_attributes"));
  1651. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1652. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "widget_attributes"));
  1653. // line 449
  1654. yield "id=\"";
  1655. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 449, $this->source); })()), "html", null, true);
  1656. yield "\" name=\"";
  1657. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["full_name"]) || array_key_exists("full_name", $context) ? $context["full_name"] : (function () { throw new RuntimeError('Variable "full_name" does not exist.', 449, $this->source); })()), "html", null, true);
  1658. yield "\"";
  1659. // line 450
  1660. if ((($tmp = (isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 450, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1661. yield " disabled=\"disabled\"";
  1662. }
  1663. // line 451
  1664. if ((($tmp = (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 451, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1665. yield " required=\"required\"";
  1666. }
  1667. // line 452
  1668. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1669. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1670. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1671. yield from [];
  1672. }
  1673. // line 455
  1674. /**
  1675. * @return iterable<null|scalar|\Stringable>
  1676. */
  1677. public function block_widget_container_attributes(array $context, array $blocks = []): iterable
  1678. {
  1679. $macros = $this->macros;
  1680. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1681. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "widget_container_attributes"));
  1682. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1683. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "widget_container_attributes"));
  1684. // line 456
  1685. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 456, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1686. yield "id=\"";
  1687. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 456, $this->source); })()), "html", null, true);
  1688. yield "\"";
  1689. }
  1690. // line 457
  1691. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1692. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1693. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1694. yield from [];
  1695. }
  1696. // line 460
  1697. /**
  1698. * @return iterable<null|scalar|\Stringable>
  1699. */
  1700. public function block_button_attributes(array $context, array $blocks = []): iterable
  1701. {
  1702. $macros = $this->macros;
  1703. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1704. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_attributes"));
  1705. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1706. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_attributes"));
  1707. // line 461
  1708. yield "id=\"";
  1709. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 461, $this->source); })()), "html", null, true);
  1710. yield "\" name=\"";
  1711. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["full_name"]) || array_key_exists("full_name", $context) ? $context["full_name"] : (function () { throw new RuntimeError('Variable "full_name" does not exist.', 461, $this->source); })()), "html", null, true);
  1712. yield "\"";
  1713. if ((($tmp = (isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 461, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1714. yield " disabled=\"disabled\"";
  1715. }
  1716. // line 462
  1717. yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
  1718. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1719. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1720. yield from [];
  1721. }
  1722. // line 465
  1723. /**
  1724. * @return iterable<null|scalar|\Stringable>
  1725. */
  1726. public function block_attributes(array $context, array $blocks = []): iterable
  1727. {
  1728. $macros = $this->macros;
  1729. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1730. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "attributes"));
  1731. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1732. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "attributes"));
  1733. // line 466
  1734. $context['_parent'] = $context;
  1735. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 466, $this->source); })()));
  1736. foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  1737. // line 467
  1738. yield " ";
  1739. // line 468
  1740. if (CoreExtension::inFilter($context["attrname"], ["placeholder", "title"])) {
  1741. // line 469
  1742. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
  1743. yield "=\"";
  1744. yield (((((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 469, $this->source); })()) === false) || (null === $context["attrvalue"]))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrvalue"], "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["attrvalue"], (isset($context["attr_translation_parameters"]) || array_key_exists("attr_translation_parameters", $context) ? $context["attr_translation_parameters"] : (function () { throw new RuntimeError('Variable "attr_translation_parameters" does not exist.', 469, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 469, $this->source); })())), "html", null, true)));
  1745. yield "\"";
  1746. } elseif (( // line 470
  1747. $context["attrvalue"] === true)) {
  1748. // line 471
  1749. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
  1750. yield "=\"";
  1751. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
  1752. yield "\"";
  1753. } elseif ((($tmp = !( // line 472
  1754. $context["attrvalue"] === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  1755. // line 473
  1756. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
  1757. yield "=\"";
  1758. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrvalue"], "html", null, true);
  1759. yield "\"";
  1760. }
  1761. }
  1762. $_parent = $context['_parent'];
  1763. unset($context['_seq'], $context['attrname'], $context['attrvalue'], $context['_parent']);
  1764. $context = array_intersect_key($context, $_parent) + $_parent;
  1765. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1766. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1767. yield from [];
  1768. }
  1769. /**
  1770. * @codeCoverageIgnore
  1771. */
  1772. public function getTemplateName(): string
  1773. {
  1774. return "form_div_layout.html.twig";
  1775. }
  1776. /**
  1777. * @codeCoverageIgnore
  1778. */
  1779. public function getDebugInfo(): array
  1780. {
  1781. return array ( 2101 => 473, 2099 => 472, 2094 => 471, 2092 => 470, 2087 => 469, 2085 => 468, 2083 => 467, 2079 => 466, 2066 => 465, 2055 => 462, 2046 => 461, 2033 => 460, 2022 => 457, 2016 => 456, 2003 => 455, 1992 => 452, 1988 => 451, 1984 => 450, 1978 => 449, 1965 => 448, 1950 => 444, 1946 => 443, 1933 => 442, 1918 => 435, 1916 => 434, 1913 => 431, 1910 => 429, 1908 => 428, 1906 => 427, 1904 => 426, 1902 => 425, 1895 => 421, 1893 => 420, 1889 => 419, 1876 => 418, 1864 => 414, 1856 => 412, 1852 => 411, 1850 => 410, 1848 => 409, 1835 => 408, 1824 => 405, 1821 => 403, 1819 => 402, 1806 => 401, 1792 => 397, 1790 => 396, 1770 => 395, 1767 => 393, 1764 => 391, 1762 => 390, 1760 => 389, 1758 => 388, 1745 => 387, 1734 => 384, 1732 => 383, 1730 => 382, 1717 => 381, 1706 => 376, 1693 => 375, 1682 => 372, 1680 => 371, 1668 => 370, 1655 => 369, 1644 => 366, 1642 => 365, 1640 => 364, 1638 => 363, 1636 => 362, 1624 => 361, 1621 => 359, 1619 => 358, 1617 => 357, 1604 => 356, 1593 => 353, 1580 => 348, 1568 => 342, 1564 => 339, 1561 => 337, 1559 => 336, 1555 => 333, 1552 => 331, 1550 => 330, 1548 => 329, 1534 => 328, 1532 => 327, 1530 => 326, 1517 => 325, 1495 => 321, 1481 => 317, 1477 => 314, 1474 => 312, 1472 => 311, 1468 => 308, 1465 => 306, 1463 => 305, 1461 => 304, 1446 => 303, 1442 => 300, 1439 => 297, 1438 => 296, 1437 => 295, 1435 => 294, 1433 => 293, 1430 => 291, 1428 => 290, 1425 => 288, 1423 => 287, 1421 => 286, 1408 => 285, 1392 => 278, 1387 => 277, 1385 => 276, 1382 => 274, 1380 => 273, 1367 => 272, 1356 => 269, 1354 => 268, 1341 => 267, 1330 => 264, 1328 => 263, 1315 => 262, 1304 => 259, 1302 => 258, 1289 => 257, 1278 => 254, 1276 => 253, 1263 => 252, 1252 => 249, 1248 => 246, 1245 => 244, 1243 => 243, 1239 => 240, 1236 => 238, 1234 => 237, 1232 => 236, 1226 => 235, 1222 => 232, 1220 => 231, 1218 => 229, 1217 => 228, 1216 => 227, 1214 => 226, 1212 => 225, 1199 => 224, 1188 => 221, 1186 => 220, 1173 => 219, 1162 => 216, 1160 => 215, 1147 => 214, 1136 => 211, 1134 => 210, 1121 => 209, 1110 => 206, 1108 => 205, 1095 => 204, 1080 => 201, 1078 => 200, 1065 => 199, 1054 => 196, 1052 => 195, 1039 => 194, 1028 => 191, 1026 => 190, 1013 => 189, 1002 => 186, 989 => 185, 978 => 182, 976 => 181, 963 => 180, 952 => 177, 950 => 176, 937 => 174, 925 => 170, 921 => 169, 917 => 166, 911 => 165, 905 => 164, 899 => 163, 893 => 162, 887 => 161, 881 => 160, 875 => 159, 870 => 155, 864 => 154, 858 => 153, 852 => 152, 846 => 151, 840 => 150, 834 => 149, 828 => 148, 822 => 145, 820 => 144, 816 => 143, 813 => 141, 811 => 140, 798 => 139, 786 => 135, 776 => 134, 771 => 133, 769 => 132, 766 => 130, 764 => 129, 751 => 128, 739 => 124, 737 => 122, 736 => 121, 735 => 120, 734 => 119, 730 => 118, 727 => 116, 725 => 115, 712 => 114, 700 => 110, 698 => 109, 696 => 108, 694 => 107, 692 => 106, 688 => 105, 685 => 103, 683 => 102, 670 => 101, 649 => 98, 636 => 97, 615 => 94, 602 => 93, 559 => 88, 556 => 86, 554 => 85, 552 => 84, 547 => 83, 545 => 82, 528 => 81, 515 => 80, 504 => 77, 502 => 76, 500 => 75, 498 => 74, 492 => 71, 490 => 70, 488 => 69, 485 => 68, 483 => 67, 481 => 66, 472 => 64, 470 => 63, 463 => 62, 460 => 60, 458 => 59, 445 => 58, 434 => 55, 428 => 53, 426 => 52, 422 => 51, 418 => 50, 405 => 49, 393 => 45, 390 => 43, 388 => 42, 375 => 41, 360 => 38, 347 => 37, 336 => 34, 333 => 32, 331 => 31, 318 => 30, 307 => 27, 305 => 26, 303 => 25, 300 => 23, 298 => 22, 294 => 21, 281 => 20, 260 => 17, 257 => 15, 255 => 13, 253 => 12, 240 => 11, 228 => 7, 225 => 5, 223 => 4, 210 => 3, 199 => 465, 197 => 460, 195 => 455, 193 => 448, 191 => 442, 188 => 439, 186 => 418, 184 => 408, 182 => 401, 180 => 387, 178 => 381, 176 => 375, 174 => 369, 172 => 356, 170 => 348, 167 => 345, 165 => 325, 162 => 324, 160 => 321, 158 => 285, 156 => 272, 154 => 267, 152 => 262, 150 => 257, 148 => 252, 146 => 224, 144 => 219, 142 => 214, 140 => 209, 138 => 204, 136 => 199, 134 => 194, 132 => 189, 130 => 185, 128 => 180, 126 => 174, 124 => 139, 122 => 128, 120 => 114, 118 => 101, 116 => 97, 114 => 93, 112 => 80, 110 => 58, 108 => 49, 106 => 41, 104 => 37, 102 => 30, 100 => 20, 98 => 11, 96 => 3,);
  1782. }
  1783. public function getSourceContext(): Source
  1784. {
  1785. return new Source("{# Widgets #}
  1786. {%- block form_widget -%}
  1787. {% if compound %}
  1788. {{- block('form_widget_compound') -}}
  1789. {% else %}
  1790. {{- block('form_widget_simple') -}}
  1791. {% endif %}
  1792. {%- endblock form_widget -%}
  1793. {%- block form_widget_simple -%}
  1794. {%- set type = type|default('text') -%}
  1795. {%- if type == 'range' or type == 'color' -%}
  1796. {# Attribute \"required\" is not supported #}
  1797. {%- set required = false -%}
  1798. {%- endif -%}
  1799. <input type=\"{{ type }}\" {{ block('widget_attributes') }} {% if value is not empty %}value=\"{{ value }}\" {% endif %}/>
  1800. {%- endblock form_widget_simple -%}
  1801. {%- block form_widget_compound -%}
  1802. <div {{ block('widget_container_attributes') }}>
  1803. {%- if form is rootform -%}
  1804. {{ form_errors(form) }}
  1805. {%- endif -%}
  1806. {{- block('form_rows') -}}
  1807. {{- form_rest(form) -}}
  1808. </div>
  1809. {%- endblock form_widget_compound -%}
  1810. {%- block collection_widget -%}
  1811. {% if prototype is defined and not prototype.rendered %}
  1812. {%- set attr = attr|merge({'data-prototype': form_row(prototype) }) -%}
  1813. {% endif %}
  1814. {{- block('form_widget') -}}
  1815. {%- endblock collection_widget -%}
  1816. {%- block textarea_widget -%}
  1817. <textarea {{ block('widget_attributes') }}>{{ value }}</textarea>
  1818. {%- endblock textarea_widget -%}
  1819. {%- block choice_widget -%}
  1820. {% if expanded %}
  1821. {{- block('choice_widget_expanded') -}}
  1822. {% else %}
  1823. {{- block('choice_widget_collapsed') -}}
  1824. {% endif %}
  1825. {%- endblock choice_widget -%}
  1826. {%- block choice_widget_expanded -%}
  1827. <div {{ block('widget_container_attributes') }}>
  1828. {%- for child in form %}
  1829. {{- form_widget(child) -}}
  1830. {{- form_label(child, null, {translation_domain: choice_translation_domain}) -}}
  1831. {% endfor -%}
  1832. </div>
  1833. {%- endblock choice_widget_expanded -%}
  1834. {%- block choice_widget_collapsed -%}
  1835. {%- if required and placeholder is none and not placeholder_in_choices and not multiple and (attr.size is not defined or attr.size <= 1) -%}
  1836. {% set required = false %}
  1837. {%- endif -%}
  1838. <select {{ block('widget_attributes') }}{% if multiple %} multiple=\"multiple\"{% endif %}>
  1839. {%- if placeholder is not none -%}
  1840. <option value=\"\"{% if required and value is empty %} selected=\"selected\"{% endif %}>{{ placeholder != '' ? (translation_domain is same as(false) ? placeholder : placeholder|trans({}, translation_domain)) }}</option>
  1841. {%- endif -%}
  1842. {%- if preferred_choices|length > 0 -%}
  1843. {% set options = preferred_choices %}
  1844. {% set render_preferred_choices = true %}
  1845. {{- block('choice_widget_options') -}}
  1846. {%- if choices|length > 0 and separator is not none -%}
  1847. <option disabled=\"disabled\">{{ separator }}</option>
  1848. {%- endif -%}
  1849. {%- endif -%}
  1850. {%- set options = choices -%}
  1851. {%- set render_preferred_choices = false -%}
  1852. {{- block('choice_widget_options') -}}
  1853. </select>
  1854. {%- endblock choice_widget_collapsed -%}
  1855. {%- block choice_widget_options -%}
  1856. {% for group_label, choice in options %}
  1857. {%- if choice is iterable -%}
  1858. <optgroup label=\"{{ choice_translation_domain is same as(false) ? group_label : group_label|trans({}, choice_translation_domain) }}\">
  1859. {% set options = choice %}
  1860. {{- block('choice_widget_options') -}}
  1861. </optgroup>
  1862. {%- else -%}
  1863. <option value=\"{{ choice.value }}\"{% if choice.attr %}{% with { attr: choice.attr } %}{{ block('attributes') }}{% endwith %}{% endif %}{% if not render_preferred_choices|default(false) and choice is selectedchoice(value) %} selected=\"selected\"{% endif %}>{{ choice_translation_domain is same as(false) ? choice.label : choice.label|trans(choice.labelTranslationParameters, choice_translation_domain) }}</option>
  1864. {%- endif -%}
  1865. {% endfor %}
  1866. {%- endblock choice_widget_options -%}
  1867. {%- block checkbox_widget -%}
  1868. <input type=\"checkbox\" {{ block('widget_attributes') }}{% if value is defined %} value=\"{{ value }}\"{% endif %}{% if checked %} checked=\"checked\"{% endif %} />
  1869. {%- endblock checkbox_widget -%}
  1870. {%- block radio_widget -%}
  1871. <input type=\"radio\" {{ block('widget_attributes') }}{% if value is defined %} value=\"{{ value }}\"{% endif %}{% if checked %} checked=\"checked\"{% endif %} />
  1872. {%- endblock radio_widget -%}
  1873. {%- block datetime_widget -%}
  1874. {% if widget == 'single_text' %}
  1875. {{- block('form_widget_simple') -}}
  1876. {%- else -%}
  1877. <div {{ block('widget_container_attributes') }}>
  1878. {{- form_errors(form.date) -}}
  1879. {{- form_errors(form.time) -}}
  1880. {{- form_widget(form.date) -}}
  1881. {{- form_widget(form.time) -}}
  1882. </div>
  1883. {%- endif -%}
  1884. {%- endblock datetime_widget -%}
  1885. {%- block date_widget -%}
  1886. {%- if widget == 'single_text' -%}
  1887. {{ block('form_widget_simple') }}
  1888. {%- else -%}
  1889. <div {{ block('widget_container_attributes') }}>
  1890. {{- date_pattern|replace({
  1891. '{{ year }}': form_widget(form.year),
  1892. '{{ month }}': form_widget(form.month),
  1893. '{{ day }}': form_widget(form.day),
  1894. })|raw -}}
  1895. </div>
  1896. {%- endif -%}
  1897. {%- endblock date_widget -%}
  1898. {%- block time_widget -%}
  1899. {%- if widget == 'single_text' -%}
  1900. {{ block('form_widget_simple') }}
  1901. {%- else -%}
  1902. {%- set vars = widget == 'text' ? { 'attr': { 'size': 1 }} : {} -%}
  1903. <div {{ block('widget_container_attributes') }}>
  1904. {{ form_widget(form.hour, vars) }}{% if with_minutes %}:{{ form_widget(form.minute, vars) }}{% endif %}{% if with_seconds %}:{{ form_widget(form.second, vars) }}{% endif %}
  1905. </div>
  1906. {%- endif -%}
  1907. {%- endblock time_widget -%}
  1908. {%- block dateinterval_widget -%}
  1909. {%- if widget == 'single_text' -%}
  1910. {{- block('form_widget_simple') -}}
  1911. {%- else -%}
  1912. <div {{ block('widget_container_attributes') }}>
  1913. {{- form_errors(form) -}}
  1914. <table class=\"{{ table_class|default('') }}\" role=\"presentation\">
  1915. <thead>
  1916. <tr>
  1917. {%- if with_years %}<th>{{ form_label(form.years) }}</th>{% endif -%}
  1918. {%- if with_months %}<th>{{ form_label(form.months) }}</th>{% endif -%}
  1919. {%- if with_weeks %}<th>{{ form_label(form.weeks) }}</th>{% endif -%}
  1920. {%- if with_days %}<th>{{ form_label(form.days) }}</th>{% endif -%}
  1921. {%- if with_hours %}<th>{{ form_label(form.hours) }}</th>{% endif -%}
  1922. {%- if with_minutes %}<th>{{ form_label(form.minutes) }}</th>{% endif -%}
  1923. {%- if with_seconds %}<th>{{ form_label(form.seconds) }}</th>{% endif -%}
  1924. </tr>
  1925. </thead>
  1926. <tbody>
  1927. <tr>
  1928. {%- if with_years %}<td>{{ form_widget(form.years) }}</td>{% endif -%}
  1929. {%- if with_months %}<td>{{ form_widget(form.months) }}</td>{% endif -%}
  1930. {%- if with_weeks %}<td>{{ form_widget(form.weeks) }}</td>{% endif -%}
  1931. {%- if with_days %}<td>{{ form_widget(form.days) }}</td>{% endif -%}
  1932. {%- if with_hours %}<td>{{ form_widget(form.hours) }}</td>{% endif -%}
  1933. {%- if with_minutes %}<td>{{ form_widget(form.minutes) }}</td>{% endif -%}
  1934. {%- if with_seconds %}<td>{{ form_widget(form.seconds) }}</td>{% endif -%}
  1935. </tr>
  1936. </tbody>
  1937. </table>
  1938. {%- if with_invert %}{{ form_widget(form.invert) }}{% endif -%}
  1939. </div>
  1940. {%- endif -%}
  1941. {%- endblock dateinterval_widget -%}
  1942. {%- block number_widget -%}
  1943. {# type=\"number\" doesn't work with floats in localized formats #}
  1944. {%- set type = type|default('text') -%}
  1945. {{ block('form_widget_simple') }}
  1946. {%- endblock number_widget -%}
  1947. {%- block integer_widget -%}
  1948. {%- set type = type|default('number') -%}
  1949. {{ block('form_widget_simple') }}
  1950. {%- endblock integer_widget -%}
  1951. {%- block money_widget -%}
  1952. {{ money_pattern|form_encode_currency(block('form_widget_simple')) }}
  1953. {%- endblock money_widget -%}
  1954. {%- block url_widget -%}
  1955. {%- set type = type|default('url') -%}
  1956. {{ block('form_widget_simple') }}
  1957. {%- endblock url_widget -%}
  1958. {%- block search_widget -%}
  1959. {%- set type = type|default('search') -%}
  1960. {{ block('form_widget_simple') }}
  1961. {%- endblock search_widget -%}
  1962. {%- block percent_widget -%}
  1963. {%- set type = type|default('text') -%}
  1964. {{ block('form_widget_simple') }}{% if symbol %} {{ symbol|default('%') }}{% endif %}
  1965. {%- endblock percent_widget -%}
  1966. {%- block password_widget -%}
  1967. {%- set type = type|default('password') -%}
  1968. {{ block('form_widget_simple') }}
  1969. {%- endblock password_widget -%}
  1970. {%- block hidden_widget -%}
  1971. {%- set type = type|default('hidden') -%}
  1972. {{ block('form_widget_simple') }}
  1973. {%- endblock hidden_widget -%}
  1974. {%- block email_widget -%}
  1975. {%- set type = type|default('email') -%}
  1976. {{ block('form_widget_simple') }}
  1977. {%- endblock email_widget -%}
  1978. {%- block range_widget -%}
  1979. {% set type = type|default('range') %}
  1980. {{- block('form_widget_simple') -}}
  1981. {%- endblock range_widget %}
  1982. {%- block button_widget -%}
  1983. {%- if label is empty -%}
  1984. {%- if label_format is not empty -%}
  1985. {% set label = label_format|replace({
  1986. '%name%': name,
  1987. '%id%': id,
  1988. }) %}
  1989. {%- elseif label is not same as(false) -%}
  1990. {% set label = name|humanize %}
  1991. {%- endif -%}
  1992. {%- endif -%}
  1993. <button type=\"{{ type|default('button') }}\" {{ block('button_attributes') }}>
  1994. {%- if translation_domain is same as(false) -%}
  1995. {%- if label_html is same as(false) -%}
  1996. {{- label -}}
  1997. {%- else -%}
  1998. {{- label|raw -}}
  1999. {%- endif -%}
  2000. {%- else -%}
  2001. {%- if label_html is same as(false) -%}
  2002. {{- label|trans(label_translation_parameters, translation_domain) -}}
  2003. {%- else -%}
  2004. {{- label|trans(label_translation_parameters, translation_domain)|raw -}}
  2005. {%- endif -%}
  2006. {%- endif -%}
  2007. </button>
  2008. {%- endblock button_widget -%}
  2009. {%- block submit_widget -%}
  2010. {%- set type = type|default('submit') -%}
  2011. {{ block('button_widget') }}
  2012. {%- endblock submit_widget -%}
  2013. {%- block reset_widget -%}
  2014. {%- set type = type|default('reset') -%}
  2015. {{ block('button_widget') }}
  2016. {%- endblock reset_widget -%}
  2017. {%- block tel_widget -%}
  2018. {%- set type = type|default('tel') -%}
  2019. {{ block('form_widget_simple') }}
  2020. {%- endblock tel_widget -%}
  2021. {%- block color_widget -%}
  2022. {%- set type = type|default('color') -%}
  2023. {{ block('form_widget_simple') }}
  2024. {%- endblock color_widget -%}
  2025. {%- block week_widget -%}
  2026. {%- if widget == 'single_text' -%}
  2027. {{ block('form_widget_simple') }}
  2028. {%- else -%}
  2029. {%- set vars = widget == 'text' ? { 'attr': { 'size': 1 }} : {} -%}
  2030. <div {{ block('widget_container_attributes') }}>
  2031. {{ form_widget(form.year, vars) }}-{{ form_widget(form.week, vars) }}
  2032. </div>
  2033. {%- endif -%}
  2034. {%- endblock week_widget -%}
  2035. {# Labels #}
  2036. {%- block form_label -%}
  2037. {% if label is not same as(false) -%}
  2038. {% if not compound -%}
  2039. {% set label_attr = label_attr|merge({'for': id}) %}
  2040. {%- endif -%}
  2041. {% if required -%}
  2042. {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
  2043. {%- endif -%}
  2044. {% if label is empty -%}
  2045. {%- if label_format is not empty -%}
  2046. {% set label = label_format|replace({
  2047. '%name%': name,
  2048. '%id%': id,
  2049. }) %}
  2050. {%- else -%}
  2051. {% set label = name|humanize %}
  2052. {%- endif -%}
  2053. {%- endif -%}
  2054. <{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>
  2055. {%- if translation_domain is same as(false) -%}
  2056. {%- if label_html is same as(false) -%}
  2057. {{- label -}}
  2058. {%- else -%}
  2059. {{- label|raw -}}
  2060. {%- endif -%}
  2061. {%- else -%}
  2062. {%- if label_html is same as(false) -%}
  2063. {{- label|trans(label_translation_parameters, translation_domain) -}}
  2064. {%- else -%}
  2065. {{- label|trans(label_translation_parameters, translation_domain)|raw -}}
  2066. {%- endif -%}
  2067. {%- endif -%}
  2068. </{{ element|default('label') }}>
  2069. {%- endif -%}
  2070. {%- endblock form_label -%}
  2071. {%- block button_label -%}{%- endblock -%}
  2072. {# Help #}
  2073. {% block form_help -%}
  2074. {%- if help is not empty -%}
  2075. {%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-text')|trim}) -%}
  2076. <p id=\"{{ id }}_help\"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
  2077. {%- if translation_domain is same as(false) -%}
  2078. {%- if help_html is same as(false) -%}
  2079. {{- help -}}
  2080. {%- else -%}
  2081. {{- help|raw -}}
  2082. {%- endif -%}
  2083. {%- else -%}
  2084. {%- if help_html is same as(false) -%}
  2085. {{- help|trans(help_translation_parameters, translation_domain) -}}
  2086. {%- else -%}
  2087. {{- help|trans(help_translation_parameters, translation_domain)|raw -}}
  2088. {%- endif -%}
  2089. {%- endif -%}
  2090. </p>
  2091. {%- endif -%}
  2092. {%- endblock form_help %}
  2093. {# Rows #}
  2094. {%- block repeated_row -%}
  2095. {#
  2096. No need to render the errors here, as all errors are mapped
  2097. to the first child (see RepeatedTypeValidatorExtension).
  2098. #}
  2099. {{- block('form_rows') -}}
  2100. {%- endblock repeated_row -%}
  2101. {%- block form_row -%}
  2102. {%- set widget_attr = {} -%}
  2103. {%- if help is not empty -%}
  2104. {%- set widget_attr = {attr: {'aria-describedby': id ~\"_help\"}} -%}
  2105. {%- endif -%}
  2106. <div{% with {attr: row_attr} %}{{ block('attributes') }}{% endwith %}>
  2107. {{- form_label(form) -}}
  2108. {{- form_errors(form) -}}
  2109. {{- form_widget(form, widget_attr) -}}
  2110. {{- form_help(form) -}}
  2111. </div>
  2112. {%- endblock form_row -%}
  2113. {%- block button_row -%}
  2114. <div{% with {attr: row_attr} %}{{ block('attributes') }}{% endwith %}>
  2115. {{- form_widget(form) -}}
  2116. </div>
  2117. {%- endblock button_row -%}
  2118. {%- block hidden_row -%}
  2119. {{ form_widget(form) }}
  2120. {%- endblock hidden_row -%}
  2121. {# Misc #}
  2122. {%- block form -%}
  2123. {{ form_start(form) }}
  2124. {{- form_widget(form) -}}
  2125. {{ form_end(form) }}
  2126. {%- endblock form -%}
  2127. {%- block form_start -%}
  2128. {%- do form.setMethodRendered() -%}
  2129. {% set method = method|upper %}
  2130. {%- if method in [\"GET\", \"POST\"] -%}
  2131. {% set form_method = method %}
  2132. {%- else -%}
  2133. {% set form_method = \"POST\" %}
  2134. {%- endif -%}
  2135. <form{% if name != '' %} name=\"{{ name }}\"{% endif %} method=\"{{ form_method|lower }}\"{% if action != '' %} action=\"{{ action }}\"{% endif %}{{ block('attributes') }}{% if multipart %} enctype=\"multipart/form-data\"{% endif %}>
  2136. {%- if form_method != method -%}
  2137. <input type=\"hidden\" name=\"_method\" value=\"{{ method }}\" />
  2138. {%- endif -%}
  2139. {%- endblock form_start -%}
  2140. {%- block form_end -%}
  2141. {%- if not render_rest is defined or render_rest -%}
  2142. {{ form_rest(form) }}
  2143. {%- endif -%}
  2144. </form>
  2145. {%- endblock form_end -%}
  2146. {%- block form_errors -%}
  2147. {%- if errors|length > 0 -%}
  2148. <ul>
  2149. {%- for error in errors -%}
  2150. <li>{{ error.message }}</li>
  2151. {%- endfor -%}
  2152. </ul>
  2153. {%- endif -%}
  2154. {%- endblock form_errors -%}
  2155. {%- block form_rest -%}
  2156. {% for child in form -%}
  2157. {% if not child.rendered %}
  2158. {{- form_row(child) -}}
  2159. {% endif %}
  2160. {%- endfor -%}
  2161. {% if not form.methodRendered and form is rootform %}
  2162. {%- do form.setMethodRendered() -%}
  2163. {% set method = method|upper %}
  2164. {%- if method in [\"GET\", \"POST\"] -%}
  2165. {% set form_method = method %}
  2166. {%- else -%}
  2167. {% set form_method = \"POST\" %}
  2168. {%- endif -%}
  2169. {%- if form_method != method -%}
  2170. <input type=\"hidden\" name=\"_method\" value=\"{{ method }}\" />
  2171. {%- endif -%}
  2172. {% endif -%}
  2173. {% endblock form_rest %}
  2174. {# Support #}
  2175. {%- block form_rows -%}
  2176. {% for child in form|filter(child => not child.rendered) %}
  2177. {{- form_row(child) -}}
  2178. {% endfor %}
  2179. {%- endblock form_rows -%}
  2180. {%- block widget_attributes -%}
  2181. id=\"{{ id }}\" name=\"{{ full_name }}\"
  2182. {%- if disabled %} disabled=\"disabled\"{% endif -%}
  2183. {%- if required %} required=\"required\"{% endif -%}
  2184. {{ block('attributes') }}
  2185. {%- endblock widget_attributes -%}
  2186. {%- block widget_container_attributes -%}
  2187. {%- if id is not empty %}id=\"{{ id }}\"{% endif -%}
  2188. {{ block('attributes') }}
  2189. {%- endblock widget_container_attributes -%}
  2190. {%- block button_attributes -%}
  2191. id=\"{{ id }}\" name=\"{{ full_name }}\"{% if disabled %} disabled=\"disabled\"{% endif -%}
  2192. {{ block('attributes') }}
  2193. {%- endblock button_attributes -%}
  2194. {% block attributes -%}
  2195. {%- for attrname, attrvalue in attr -%}
  2196. {{- \" \" -}}
  2197. {%- if attrname in ['placeholder', 'title'] -%}
  2198. {{- attrname }}=\"{{ translation_domain is same as(false) or attrvalue is null ? attrvalue : attrvalue|trans(attr_translation_parameters, translation_domain) }}\"
  2199. {%- elseif attrvalue is same as(true) -%}
  2200. {{- attrname }}=\"{{ attrname }}\"
  2201. {%- elseif attrvalue is not same as(false) -%}
  2202. {{- attrname }}=\"{{ attrvalue }}\"
  2203. {%- endif -%}
  2204. {%- endfor -%}
  2205. {%- endblock attributes -%}
  2206. ", "form_div_layout.html.twig", "/var/www/vhosts/alpha.se7enx.com/doc/site.v4.platform.alpha.se7enx.com/vendor/symfony/twig-bridge/Resources/views/Form/form_div_layout.html.twig");
  2207. }
  2208. }