PageRenderTime 65ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/dev/twig/2c/f7/f2ed48f0c9bcc77b3c4e18fe5ef5fd1b2e5a4e4e87f0cab3f891896a197a.php

https://github.com/djae138/symfony
PHP | 1385 lines | 1023 code | 48 blank | 314 comment | 64 complexity | 9533a551b87e31c32a5764aec80baa5d MD5 | raw file
Possible License(s): BSD-3-Clause

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /* form_div_layout.html.twig */
  3. class __TwigTemplate_2cf7f2ed48f0c9bcc77b3c4e18fe5ef5fd1b2e5a4e4e87f0cab3f891896a197a extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. 'form_widget' => array($this, 'block_form_widget'),
  11. 'form_widget_simple' => array($this, 'block_form_widget_simple'),
  12. 'form_widget_compound' => array($this, 'block_form_widget_compound'),
  13. 'collection_widget' => array($this, 'block_collection_widget'),
  14. 'textarea_widget' => array($this, 'block_textarea_widget'),
  15. 'choice_widget' => array($this, 'block_choice_widget'),
  16. 'choice_widget_expanded' => array($this, 'block_choice_widget_expanded'),
  17. 'choice_widget_collapsed' => array($this, 'block_choice_widget_collapsed'),
  18. 'choice_widget_options' => array($this, 'block_choice_widget_options'),
  19. 'checkbox_widget' => array($this, 'block_checkbox_widget'),
  20. 'radio_widget' => array($this, 'block_radio_widget'),
  21. 'datetime_widget' => array($this, 'block_datetime_widget'),
  22. 'date_widget' => array($this, 'block_date_widget'),
  23. 'time_widget' => array($this, 'block_time_widget'),
  24. 'number_widget' => array($this, 'block_number_widget'),
  25. 'integer_widget' => array($this, 'block_integer_widget'),
  26. 'money_widget' => array($this, 'block_money_widget'),
  27. 'url_widget' => array($this, 'block_url_widget'),
  28. 'search_widget' => array($this, 'block_search_widget'),
  29. 'percent_widget' => array($this, 'block_percent_widget'),
  30. 'password_widget' => array($this, 'block_password_widget'),
  31. 'hidden_widget' => array($this, 'block_hidden_widget'),
  32. 'email_widget' => array($this, 'block_email_widget'),
  33. 'button_widget' => array($this, 'block_button_widget'),
  34. 'submit_widget' => array($this, 'block_submit_widget'),
  35. 'reset_widget' => array($this, 'block_reset_widget'),
  36. 'form_label' => array($this, 'block_form_label'),
  37. 'button_label' => array($this, 'block_button_label'),
  38. 'repeated_row' => array($this, 'block_repeated_row'),
  39. 'form_row' => array($this, 'block_form_row'),
  40. 'button_row' => array($this, 'block_button_row'),
  41. 'hidden_row' => array($this, 'block_hidden_row'),
  42. 'form' => array($this, 'block_form'),
  43. 'form_start' => array($this, 'block_form_start'),
  44. 'form_end' => array($this, 'block_form_end'),
  45. 'form_enctype' => array($this, 'block_form_enctype'),
  46. 'form_errors' => array($this, 'block_form_errors'),
  47. 'form_rest' => array($this, 'block_form_rest'),
  48. 'form_rows' => array($this, 'block_form_rows'),
  49. 'widget_attributes' => array($this, 'block_widget_attributes'),
  50. 'widget_container_attributes' => array($this, 'block_widget_container_attributes'),
  51. 'button_attributes' => array($this, 'block_button_attributes'),
  52. );
  53. }
  54. protected function doDisplay(array $context, array $blocks = array())
  55. {
  56. // line 2
  57. echo "
  58. ";
  59. // line 3
  60. $this->displayBlock('form_widget', $context, $blocks);
  61. // line 12
  62. echo "
  63. ";
  64. // line 13
  65. $this->displayBlock('form_widget_simple', $context, $blocks);
  66. // line 19
  67. echo "
  68. ";
  69. // line 20
  70. $this->displayBlock('form_widget_compound', $context, $blocks);
  71. // line 31
  72. echo "
  73. ";
  74. // line 32
  75. $this->displayBlock('collection_widget', $context, $blocks);
  76. // line 40
  77. echo "
  78. ";
  79. // line 41
  80. $this->displayBlock('textarea_widget', $context, $blocks);
  81. // line 46
  82. echo "
  83. ";
  84. // line 47
  85. $this->displayBlock('choice_widget', $context, $blocks);
  86. // line 56
  87. echo "
  88. ";
  89. // line 57
  90. $this->displayBlock('choice_widget_expanded', $context, $blocks);
  91. // line 67
  92. echo "
  93. ";
  94. // line 68
  95. $this->displayBlock('choice_widget_collapsed', $context, $blocks);
  96. // line 89
  97. echo "
  98. ";
  99. // line 90
  100. $this->displayBlock('choice_widget_options', $context, $blocks);
  101. // line 104
  102. echo "
  103. ";
  104. // line 105
  105. $this->displayBlock('checkbox_widget', $context, $blocks);
  106. // line 110
  107. echo "
  108. ";
  109. // line 111
  110. $this->displayBlock('radio_widget', $context, $blocks);
  111. // line 116
  112. echo "
  113. ";
  114. // line 117
  115. $this->displayBlock('datetime_widget', $context, $blocks);
  116. // line 131
  117. echo "
  118. ";
  119. // line 132
  120. $this->displayBlock('date_widget', $context, $blocks);
  121. // line 147
  122. echo "
  123. ";
  124. // line 148
  125. $this->displayBlock('time_widget', $context, $blocks);
  126. // line 160
  127. echo "
  128. ";
  129. // line 161
  130. $this->displayBlock('number_widget', $context, $blocks);
  131. // line 168
  132. echo "
  133. ";
  134. // line 169
  135. $this->displayBlock('integer_widget', $context, $blocks);
  136. // line 175
  137. echo "
  138. ";
  139. // line 176
  140. $this->displayBlock('money_widget', $context, $blocks);
  141. // line 181
  142. echo "
  143. ";
  144. // line 182
  145. $this->displayBlock('url_widget', $context, $blocks);
  146. // line 188
  147. echo "
  148. ";
  149. // line 189
  150. $this->displayBlock('search_widget', $context, $blocks);
  151. // line 195
  152. echo "
  153. ";
  154. // line 196
  155. $this->displayBlock('percent_widget', $context, $blocks);
  156. // line 202
  157. echo "
  158. ";
  159. // line 203
  160. $this->displayBlock('password_widget', $context, $blocks);
  161. // line 209
  162. echo "
  163. ";
  164. // line 210
  165. $this->displayBlock('hidden_widget', $context, $blocks);
  166. // line 216
  167. echo "
  168. ";
  169. // line 217
  170. $this->displayBlock('email_widget', $context, $blocks);
  171. // line 223
  172. echo "
  173. ";
  174. // line 224
  175. $this->displayBlock('button_widget', $context, $blocks);
  176. // line 232
  177. echo "
  178. ";
  179. // line 233
  180. $this->displayBlock('submit_widget', $context, $blocks);
  181. // line 239
  182. echo "
  183. ";
  184. // line 240
  185. $this->displayBlock('reset_widget', $context, $blocks);
  186. // line 246
  187. echo "
  188. ";
  189. // line 248
  190. echo "
  191. ";
  192. // line 249
  193. $this->displayBlock('form_label', $context, $blocks);
  194. // line 265
  195. echo "
  196. ";
  197. // line 266
  198. $this->displayBlock('button_label', $context, $blocks);
  199. // line 267
  200. echo "
  201. ";
  202. // line 269
  203. echo "
  204. ";
  205. // line 270
  206. $this->displayBlock('repeated_row', $context, $blocks);
  207. // line 279
  208. echo "
  209. ";
  210. // line 280
  211. $this->displayBlock('form_row', $context, $blocks);
  212. // line 289
  213. echo "
  214. ";
  215. // line 290
  216. $this->displayBlock('button_row', $context, $blocks);
  217. // line 297
  218. echo "
  219. ";
  220. // line 298
  221. $this->displayBlock('hidden_row', $context, $blocks);
  222. // line 301
  223. echo "
  224. ";
  225. // line 303
  226. echo "
  227. ";
  228. // line 304
  229. $this->displayBlock('form', $context, $blocks);
  230. // line 311
  231. echo "
  232. ";
  233. // line 312
  234. $this->displayBlock('form_start', $context, $blocks);
  235. // line 326
  236. echo "
  237. ";
  238. // line 327
  239. $this->displayBlock('form_end', $context, $blocks);
  240. // line 335
  241. echo "
  242. ";
  243. // line 336
  244. $this->displayBlock('form_enctype', $context, $blocks);
  245. // line 341
  246. echo "
  247. ";
  248. // line 342
  249. $this->displayBlock('form_errors', $context, $blocks);
  250. // line 353
  251. echo "
  252. ";
  253. // line 354
  254. $this->displayBlock('form_rest', $context, $blocks);
  255. // line 363
  256. echo "
  257. ";
  258. // line 365
  259. echo "
  260. ";
  261. // line 366
  262. $this->displayBlock('form_rows', $context, $blocks);
  263. // line 373
  264. echo "
  265. ";
  266. // line 374
  267. $this->displayBlock('widget_attributes', $context, $blocks);
  268. // line 380
  269. echo "
  270. ";
  271. // line 381
  272. $this->displayBlock('widget_container_attributes', $context, $blocks);
  273. // line 387
  274. echo "
  275. ";
  276. // line 388
  277. $this->displayBlock('button_attributes', $context, $blocks);
  278. }
  279. // line 3
  280. public function block_form_widget($context, array $blocks = array())
  281. {
  282. // line 4
  283. ob_start();
  284. // line 5
  285. echo " ";
  286. if ((isset($context["compound"]) ? $context["compound"] : $this->getContext($context, "compound"))) {
  287. // line 6
  288. echo " ";
  289. $this->displayBlock("form_widget_compound", $context, $blocks);
  290. echo "
  291. ";
  292. } else {
  293. // line 8
  294. echo " ";
  295. $this->displayBlock("form_widget_simple", $context, $blocks);
  296. echo "
  297. ";
  298. }
  299. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  300. }
  301. // line 13
  302. public function block_form_widget_simple($context, array $blocks = array())
  303. {
  304. // line 14
  305. ob_start();
  306. // line 15
  307. echo " ";
  308. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "text")) : ("text"));
  309. // line 16
  310. echo " <input type=\"";
  311. echo twig_escape_filter($this->env, (isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "html", null, true);
  312. echo "\" ";
  313. $this->displayBlock("widget_attributes", $context, $blocks);
  314. echo " ";
  315. if ((!twig_test_empty((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))))) {
  316. echo "value=\"";
  317. echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
  318. echo "\" ";
  319. }
  320. echo "/>
  321. ";
  322. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  323. }
  324. // line 20
  325. public function block_form_widget_compound($context, array $blocks = array())
  326. {
  327. // line 21
  328. ob_start();
  329. // line 22
  330. echo " <div ";
  331. $this->displayBlock("widget_container_attributes", $context, $blocks);
  332. echo ">
  333. ";
  334. // line 23
  335. if (twig_test_empty($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "parent"))) {
  336. // line 24
  337. echo " ";
  338. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'errors');
  339. echo "
  340. ";
  341. }
  342. // line 26
  343. echo " ";
  344. $this->displayBlock("form_rows", $context, $blocks);
  345. echo "
  346. ";
  347. // line 27
  348. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'rest');
  349. echo "
  350. </div>
  351. ";
  352. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  353. }
  354. // line 32
  355. public function block_collection_widget($context, array $blocks = array())
  356. {
  357. // line 33
  358. ob_start();
  359. // line 34
  360. echo " ";
  361. if (array_key_exists("prototype", $context)) {
  362. // line 35
  363. echo " ";
  364. $context["attr"] = twig_array_merge((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")), array("data-prototype" => $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["prototype"]) ? $context["prototype"] : $this->getContext($context, "prototype")), 'row')));
  365. // line 36
  366. echo " ";
  367. }
  368. // line 37
  369. echo " ";
  370. $this->displayBlock("form_widget", $context, $blocks);
  371. echo "
  372. ";
  373. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  374. }
  375. // line 41
  376. public function block_textarea_widget($context, array $blocks = array())
  377. {
  378. // line 42
  379. ob_start();
  380. // line 43
  381. echo " <textarea ";
  382. $this->displayBlock("widget_attributes", $context, $blocks);
  383. echo ">";
  384. echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
  385. echo "</textarea>
  386. ";
  387. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  388. }
  389. // line 47
  390. public function block_choice_widget($context, array $blocks = array())
  391. {
  392. // line 48
  393. ob_start();
  394. // line 49
  395. echo " ";
  396. if ((isset($context["expanded"]) ? $context["expanded"] : $this->getContext($context, "expanded"))) {
  397. // line 50
  398. echo " ";
  399. $this->displayBlock("choice_widget_expanded", $context, $blocks);
  400. echo "
  401. ";
  402. } else {
  403. // line 52
  404. echo " ";
  405. $this->displayBlock("choice_widget_collapsed", $context, $blocks);
  406. echo "
  407. ";
  408. }
  409. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  410. }
  411. // line 57
  412. public function block_choice_widget_expanded($context, array $blocks = array())
  413. {
  414. // line 58
  415. ob_start();
  416. // line 59
  417. echo " <div ";
  418. $this->displayBlock("widget_container_attributes", $context, $blocks);
  419. echo ">
  420. ";
  421. // line 60
  422. $context['_parent'] = (array) $context;
  423. $context['_seq'] = twig_ensure_traversable((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")));
  424. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  425. // line 61
  426. echo " ";
  427. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), 'widget');
  428. echo "
  429. ";
  430. // line 62
  431. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), 'label');
  432. echo "
  433. ";
  434. }
  435. $_parent = $context['_parent'];
  436. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  437. $context = array_intersect_key($context, $_parent) + $_parent;
  438. // line 64
  439. echo " </div>
  440. ";
  441. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  442. }
  443. // line 68
  444. public function block_choice_widget_collapsed($context, array $blocks = array())
  445. {
  446. // line 69
  447. ob_start();
  448. // line 70
  449. echo " ";
  450. if ((((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required")) && (null === (isset($context["empty_value"]) ? $context["empty_value"] : $this->getContext($context, "empty_value")))) && (!(isset($context["empty_value_in_choices"]) ? $context["empty_value_in_choices"] : $this->getContext($context, "empty_value_in_choices"))))) {
  451. // line 71
  452. echo " ";
  453. $context["required"] = false;
  454. // line 72
  455. echo " ";
  456. }
  457. // line 73
  458. echo " <select ";
  459. $this->displayBlock("widget_attributes", $context, $blocks);
  460. if ((isset($context["multiple"]) ? $context["multiple"] : $this->getContext($context, "multiple"))) {
  461. echo " multiple=\"multiple\"";
  462. }
  463. echo ">
  464. ";
  465. // line 74
  466. if ((!(null === (isset($context["empty_value"]) ? $context["empty_value"] : $this->getContext($context, "empty_value"))))) {
  467. // line 75
  468. echo " <option value=\"\"";
  469. if (((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required")) && twig_test_empty((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))))) {
  470. echo " selected=\"selected\"";
  471. }
  472. echo ">";
  473. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["empty_value"]) ? $context["empty_value"] : $this->getContext($context, "empty_value")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
  474. echo "</option>
  475. ";
  476. }
  477. // line 77
  478. echo " ";
  479. if ((twig_length_filter($this->env, (isset($context["preferred_choices"]) ? $context["preferred_choices"] : $this->getContext($context, "preferred_choices"))) > 0)) {
  480. // line 78
  481. echo " ";
  482. $context["options"] = (isset($context["preferred_choices"]) ? $context["preferred_choices"] : $this->getContext($context, "preferred_choices"));
  483. // line 79
  484. echo " ";
  485. $this->displayBlock("choice_widget_options", $context, $blocks);
  486. echo "
  487. ";
  488. // line 80
  489. if (((twig_length_filter($this->env, (isset($context["choices"]) ? $context["choices"] : $this->getContext($context, "choices"))) > 0) && (!(null === (isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")))))) {
  490. // line 81
  491. echo " <option disabled=\"disabled\">";
  492. echo twig_escape_filter($this->env, (isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")), "html", null, true);
  493. echo "</option>
  494. ";
  495. }
  496. // line 83
  497. echo " ";
  498. }
  499. // line 84
  500. echo " ";
  501. $context["options"] = (isset($context["choices"]) ? $context["choices"] : $this->getContext($context, "choices"));
  502. // line 85
  503. echo " ";
  504. $this->displayBlock("choice_widget_options", $context, $blocks);
  505. echo "
  506. </select>
  507. ";
  508. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  509. }
  510. // line 90
  511. public function block_choice_widget_options($context, array $blocks = array())
  512. {
  513. // line 91
  514. ob_start();
  515. // line 92
  516. echo " ";
  517. $context['_parent'] = (array) $context;
  518. $context['_seq'] = twig_ensure_traversable((isset($context["options"]) ? $context["options"] : $this->getContext($context, "options")));
  519. $context['loop'] = array(
  520. 'parent' => $context['_parent'],
  521. 'index0' => 0,
  522. 'index' => 1,
  523. 'first' => true,
  524. );
  525. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  526. $length = count($context['_seq']);
  527. $context['loop']['revindex0'] = $length - 1;
  528. $context['loop']['revindex'] = $length;
  529. $context['loop']['length'] = $length;
  530. $context['loop']['last'] = 1 === $length;
  531. }
  532. foreach ($context['_seq'] as $context["group_label"] => $context["choice"]) {
  533. // line 93
  534. echo " ";
  535. if (twig_test_iterable((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")))) {
  536. // line 94
  537. echo " <optgroup label=\"";
  538. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["group_label"]) ? $context["group_label"] : $this->getContext($context, "group_label")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
  539. echo "\">
  540. ";
  541. // line 95
  542. $context["options"] = (isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice"));
  543. // line 96
  544. echo " ";
  545. $this->displayBlock("choice_widget_options", $context, $blocks);
  546. echo "
  547. </optgroup>
  548. ";
  549. } else {
  550. // line 99
  551. echo " <option value=\"";
  552. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), "value"), "html", null, true);
  553. echo "\"";
  554. if ($this->env->getExtension('form')->isSelectedChoice((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")))) {
  555. echo " selected=\"selected\"";
  556. }
  557. echo ">";
  558. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), "label"), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
  559. echo "</option>
  560. ";
  561. }
  562. // line 101
  563. echo " ";
  564. ++$context['loop']['index0'];
  565. ++$context['loop']['index'];
  566. $context['loop']['first'] = false;
  567. if (isset($context['loop']['length'])) {
  568. --$context['loop']['revindex0'];
  569. --$context['loop']['revindex'];
  570. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  571. }
  572. }
  573. $_parent = $context['_parent'];
  574. unset($context['_seq'], $context['_iterated'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
  575. $context = array_intersect_key($context, $_parent) + $_parent;
  576. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  577. }
  578. // line 105
  579. public function block_checkbox_widget($context, array $blocks = array())
  580. {
  581. // line 106
  582. ob_start();
  583. // line 107
  584. echo " <input type=\"checkbox\" ";
  585. $this->displayBlock("widget_attributes", $context, $blocks);
  586. if (array_key_exists("value", $context)) {
  587. echo " value=\"";
  588. echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
  589. echo "\"";
  590. }
  591. if ((isset($context["checked"]) ? $context["checked"] : $this->getContext($context, "checked"))) {
  592. echo " checked=\"checked\"";
  593. }
  594. echo " />
  595. ";
  596. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  597. }
  598. // line 111
  599. public function block_radio_widget($context, array $blocks = array())
  600. {
  601. // line 112
  602. ob_start();
  603. // line 113
  604. echo " <input type=\"radio\" ";
  605. $this->displayBlock("widget_attributes", $context, $blocks);
  606. if (array_key_exists("value", $context)) {
  607. echo " value=\"";
  608. echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
  609. echo "\"";
  610. }
  611. if ((isset($context["checked"]) ? $context["checked"] : $this->getContext($context, "checked"))) {
  612. echo " checked=\"checked\"";
  613. }
  614. echo " />
  615. ";
  616. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  617. }
  618. // line 117
  619. public function block_datetime_widget($context, array $blocks = array())
  620. {
  621. // line 118
  622. ob_start();
  623. // line 119
  624. echo " ";
  625. if (((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "single_text")) {
  626. // line 120
  627. echo " ";
  628. $this->displayBlock("form_widget_simple", $context, $blocks);
  629. echo "
  630. ";
  631. } else {
  632. // line 122
  633. echo " <div ";
  634. $this->displayBlock("widget_container_attributes", $context, $blocks);
  635. echo ">
  636. ";
  637. // line 123
  638. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "date"), 'errors');
  639. echo "
  640. ";
  641. // line 124
  642. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "time"), 'errors');
  643. echo "
  644. ";
  645. // line 125
  646. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "date"), 'widget');
  647. echo "
  648. ";
  649. // line 126
  650. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "time"), 'widget');
  651. echo "
  652. </div>
  653. ";
  654. }
  655. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  656. }
  657. // line 132
  658. public function block_date_widget($context, array $blocks = array())
  659. {
  660. // line 133
  661. ob_start();
  662. // line 134
  663. echo " ";
  664. if (((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "single_text")) {
  665. // line 135
  666. echo " ";
  667. $this->displayBlock("form_widget_simple", $context, $blocks);
  668. echo "
  669. ";
  670. } else {
  671. // line 137
  672. echo " <div ";
  673. $this->displayBlock("widget_container_attributes", $context, $blocks);
  674. echo ">
  675. ";
  676. // line 138
  677. echo strtr((isset($context["date_pattern"]) ? $context["date_pattern"] : $this->getContext($context, "date_pattern")), array("{{ year }}" => // line 139
  678. $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "year"), 'widget'), "{{ month }}" => // line 140
  679. $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "month"), 'widget'), "{{ day }}" => // line 141
  680. $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "day"), 'widget')));
  681. // line 142
  682. echo "
  683. </div>
  684. ";
  685. }
  686. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  687. }
  688. // line 148
  689. public function block_time_widget($context, array $blocks = array())
  690. {
  691. // line 149
  692. ob_start();
  693. // line 150
  694. echo " ";
  695. if (((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "single_text")) {
  696. // line 151
  697. echo " ";
  698. $this->displayBlock("form_widget_simple", $context, $blocks);
  699. echo "
  700. ";
  701. } else {
  702. // line 153
  703. echo " ";
  704. $context["vars"] = ((((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "text")) ? (array("attr" => array("size" => 1))) : (array()));
  705. // line 154
  706. echo " <div ";
  707. $this->displayBlock("widget_container_attributes", $context, $blocks);
  708. echo ">
  709. ";
  710. // line 155
  711. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "hour"), 'widget', (isset($context["vars"]) ? $context["vars"] : $this->getContext($context, "vars")));
  712. if ((isset($context["with_minutes"]) ? $context["with_minutes"] : $this->getContext($context, "with_minutes"))) {
  713. echo ":";
  714. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "minute"), 'widget', (isset($context["vars"]) ? $context["vars"] : $this->getContext($context, "vars")));
  715. }
  716. if ((isset($context["with_seconds"]) ? $context["with_seconds"] : $this->getContext($context, "with_seconds"))) {
  717. echo ":";
  718. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "second"), 'widget', (isset($context["vars"]) ? $context["vars"] : $this->getContext($context, "vars")));
  719. }
  720. // line 156
  721. echo " </div>
  722. ";
  723. }
  724. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  725. }
  726. // line 161
  727. public function block_number_widget($context, array $blocks = array())
  728. {
  729. // line 162
  730. ob_start();
  731. // line 163
  732. echo " ";
  733. // line 164
  734. echo " ";
  735. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "text")) : ("text"));
  736. // line 165
  737. echo " ";
  738. $this->displayBlock("form_widget_simple", $context, $blocks);
  739. echo "
  740. ";
  741. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  742. }
  743. // line 169
  744. public function block_integer_widget($context, array $blocks = array())
  745. {
  746. // line 170
  747. ob_start();
  748. // line 171
  749. echo " ";
  750. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "number")) : ("number"));
  751. // line 172
  752. echo " ";
  753. $this->displayBlock("form_widget_simple", $context, $blocks);
  754. echo "
  755. ";
  756. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  757. }
  758. // line 176
  759. public function block_money_widget($context, array $blocks = array())
  760. {
  761. // line 177
  762. ob_start();
  763. // line 178
  764. echo " ";
  765. echo strtr((isset($context["money_pattern"]) ? $context["money_pattern"] : $this->getContext($context, "money_pattern")), array("{{ widget }}" => $this->renderBlock("form_widget_simple", $context, $blocks)));
  766. echo "
  767. ";
  768. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  769. }
  770. // line 182
  771. public function block_url_widget($context, array $blocks = array())
  772. {
  773. // line 183
  774. ob_start();
  775. // line 184
  776. echo " ";
  777. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "url")) : ("url"));
  778. // line 185
  779. echo " ";
  780. $this->displayBlock("form_widget_simple", $context, $blocks);
  781. echo "
  782. ";
  783. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  784. }
  785. // line 189
  786. public function block_search_widget($context, array $blocks = array())
  787. {
  788. // line 190
  789. ob_start();
  790. // line 191
  791. echo " ";
  792. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "search")) : ("search"));
  793. // line 192
  794. echo " ";
  795. $this->displayBlock("form_widget_simple", $context, $blocks);
  796. echo "
  797. ";
  798. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  799. }
  800. // line 196
  801. public function block_percent_widget($context, array $blocks = array())
  802. {
  803. // line 197
  804. ob_start();
  805. // line 198
  806. echo " ";
  807. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "text")) : ("text"));
  808. // line 199
  809. echo " ";
  810. $this->displayBlock("form_widget_simple", $context, $blocks);
  811. echo " %
  812. ";
  813. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  814. }
  815. // line 203
  816. public function block_password_widget($context, array $blocks = array())
  817. {
  818. // line 204
  819. ob_start();
  820. // line 205
  821. echo " ";
  822. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "password")) : ("password"));
  823. // line 206
  824. echo " ";
  825. $this->displayBlock("form_widget_simple", $context, $blocks);
  826. echo "
  827. ";
  828. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  829. }
  830. // line 210
  831. public function block_hidden_widget($context, array $blocks = array())
  832. {
  833. // line 211
  834. ob_start();
  835. // line 212
  836. echo " ";
  837. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "hidden")) : ("hidden"));
  838. // line 213
  839. echo " ";
  840. $this->displayBlock("form_widget_simple", $context, $blocks);
  841. echo "
  842. ";
  843. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  844. }
  845. // line 217
  846. public function block_email_widget($context, array $blocks = array())
  847. {
  848. // line 218
  849. ob_start();
  850. // line 219
  851. echo " ";
  852. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "email")) : ("email"));
  853. // line 220
  854. echo " ";
  855. $this->displayBlock("form_widget_simple", $context, $blocks);
  856. echo "
  857. ";
  858. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  859. }
  860. // line 224
  861. public function block_button_widget($context, array $blocks = array())
  862. {
  863. // line 225
  864. ob_start();
  865. // line 226
  866. echo " ";
  867. if (twig_test_empty((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")))) {
  868. // line 227
  869. echo " ";
  870. $context["label"] = call_user_func_array($this->env->getFilter('humanize')->getCallable(), array((isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))));
  871. // line 228
  872. echo " ";
  873. }
  874. // line 229
  875. echo " <button type=\"";
  876. echo twig_escape_filter($this->env, ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "button")) : ("button")), "html", null, true);
  877. echo "\" ";
  878. $this->displayBlock("button_attributes", $context, $blocks);
  879. echo ">";
  880. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
  881. echo "</button>
  882. ";
  883. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  884. }
  885. // line 233
  886. public function block_submit_widget($context, array $blocks = array())
  887. {
  888. // line 234
  889. ob_start();
  890. // line 235
  891. echo " ";
  892. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "submit")) : ("submit"));
  893. // line 236
  894. echo " ";
  895. $this->displayBlock("button_widget", $context, $blocks);
  896. echo "
  897. ";
  898. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  899. }
  900. // line 240
  901. public function block_reset_widget($context, array $blocks = array())
  902. {
  903. // line 241
  904. ob_start();
  905. // line 242
  906. echo " ";
  907. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "reset")) : ("reset"));
  908. // line 243
  909. echo " ";
  910. $this->displayBlock("button_widget", $context, $blocks);
  911. echo "
  912. ";
  913. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  914. }
  915. // line 249
  916. public function block_form_label($context, array $blocks = array())
  917. {
  918. // line 250
  919. ob_start();
  920. // line 251
  921. echo " ";
  922. if ((!((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")) === false))) {
  923. // line 252
  924. echo " ";
  925. if ((!(isset($context["compound"]) ? $context["compound"] : $this->getContext($context, "compound")))) {
  926. // line 253
  927. echo " ";
  928. $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")), array("for" => (isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"))));
  929. // line 254
  930. echo " ";
  931. }
  932. // line 255
  933. echo " ";
  934. if ((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required"))) {
  935. // line 256
  936. echo " ";
  937. $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")), array("class" => trim(((($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class"), "")) : ("")) . " required"))));
  938. // line 257
  939. echo " ";
  940. }
  941. // line 258
  942. echo " ";
  943. if (twig_test_empty((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")))) {
  944. // line 259
  945. echo " ";
  946. $context["label"] = call_user_func_array($this->env->getFilter('humanize')->getCallable(), array((isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))));
  947. // line 260
  948. echo " ";
  949. }
  950. // line 261
  951. echo " <label";
  952. $context['_parent'] = (array) $context;
  953. $context['_seq'] = twig_ensure_traversable((isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")));
  954. foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  955. echo " ";
  956. echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
  957. echo "=\"";
  958. echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")), "html", null, true);
  959. echo "\"";
  960. }
  961. $_parent = $context['_parent'];
  962. unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
  963. $context = array_intersect_key($context, $_parent) + $_parent;
  964. echo ">";
  965. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
  966. echo "</label>
  967. ";
  968. }
  969. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  970. }
  971. // line 266
  972. public function block_button_label($context, array $blocks = array())
  973. {
  974. }
  975. // line 270
  976. public function block_repeated_row($context, array $blocks = array())
  977. {
  978. // line 271
  979. ob_start();
  980. // line 272
  981. echo " ";
  982. // line 276
  983. echo " ";
  984. $this->displayBlock("form_rows", $context, $blocks);
  985. echo "
  986. ";
  987. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  988. }
  989. // line 280
  990. public function block_form_row($context, array $blocks = array())
  991. {
  992. // line 281
  993. ob_start();
  994. // line 282
  995. echo " <div>
  996. ";
  997. // line 283
  998. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'label');
  999. echo "
  1000. ";
  1001. // line 284
  1002. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'errors');
  1003. echo "
  1004. ";
  1005. // line 285
  1006. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
  1007. echo "
  1008. </div>
  1009. ";
  1010. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  1011. }
  1012. // line 290
  1013. public function block_button_row($context, array $blocks = array())
  1014. {
  1015. // line 291
  1016. ob_start();
  1017. // line 292
  1018. echo " <div>
  1019. ";
  1020. // line 293
  1021. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
  1022. echo "
  1023. </div>
  1024. ";
  1025. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  1026. }
  1027. // line 298
  1028. public function block_hidden_row($context, array $blocks = array())
  1029. {
  1030. // line 299
  1031. echo " ";
  1032. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
  1033. echo "
  1034. ";
  1035. }
  1036. // line 304
  1037. public function block_form($context, array $blocks = array())
  1038. {
  1039. // line 305
  1040. ob_start();
  1041. // line 306
  1042. echo " ";
  1043. echo $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'form_start');
  1044. echo "
  1045. ";
  1046. // line 307
  1047. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
  1048. echo "
  1049. ";
  1050. // line 308
  1051. echo $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'form_end');
  1052. echo "
  1053. ";
  1054. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  1055. }
  1056. // line 312
  1057. public function block_form_start($context, array $blocks = array())
  1058. {
  1059. // line 313
  1060. ob_start();
  1061. // line 314
  1062. echo " ";
  1063. $context["method"] = twig_upper_filter($this->env, (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")));
  1064. // line 315
  1065. echo " ";
  1066. if (twig_in_filter((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), array(0 => "GET", 1 => "POST"))) {
  1067. // line 316
  1068. echo " ";
  1069. $context["form_method"] = (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"));
  1070. // line 317
  1071. echo " ";
  1072. } else {
  1073. // line 318
  1074. echo " ";
  1075. $context["form_method"] = "POST";
  1076. // line 319
  1077. echo " ";
  1078. }
  1079. // line 320
  1080. echo " <form method=\"";
  1081. echo twig_escape_filter($this->env, twig_lower_filter($this->env, (isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method"))), "html", null, true);
  1082. echo "\" action=\"";
  1083. echo twig_escape_filter($this->env, (isset($context["action"]) ? $context["action"] : $this->getContext($context, "action")), "html", null, true);
  1084. echo "\"";
  1085. $context['_parent'] = (array) $context;
  1086. $context['_seq'] = twig_ensure_traversable((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")));
  1087. foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  1088. echo " ";
  1089. echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
  1090. echo "=\"";
  1091. echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")), "html", null, true);
  1092. echo "\"";
  1093. }
  1094. $_parent = $context['_parent'];
  1095. unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
  1096. $context = array_intersect_key($context, $_parent) + $_parent;
  1097. if ((isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart"))) {
  1098. echo " enctype=\"multipart/form-data\"";
  1099. }
  1100. echo ">
  1101. ";
  1102. // line 321
  1103. if (((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")))) {
  1104. // line 322
  1105. echo " <input type=\"hidden\" name=\"_method\" value=\"";
  1106. echo twig_escape_filter($this->env, (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "html", null, true);
  1107. echo "\" />
  1108. ";
  1109. }
  1110. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  1111. }
  1112. // line 327
  1113. public function block_form_end($context, array $blocks = array())
  1114. {
  1115. // line 328
  1116. ob_start();
  1117. // line 329
  1118. echo " ";
  1119. if (((!array_key_exists("render_rest", $context)) || (isset($context["render_rest"]) ? $context["render_rest"] : $this->getContext($context, "render_rest")))) {
  1120. // line 330
  1121. echo " ";
  1122. echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'rest');
  1123. echo "
  1124. ";
  1125. }
  1126. // line 332
  1127. echo " </form>
  1128. ";
  1129. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  1130. }
  1131. // line 336
  1132. public function block_form_enctype($context, array $blocks = array())
  1133. {
  1134. // line 337
  1135. ob_start();
  1136. // line 338
  1137. echo " ";
  1138. if ((isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart"))) {
  1139. echo "enctype=\"multipart/form-data\"";
  1140. }
  1141. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  1142. }
  1143. // line 342
  1144. public function block_form_errors($context, array $blocks = array())
  1145. {
  1146. // line 343
  1147. ob_start();
  1148. // line 344
  1149. echo " ";
  1150. if ((twig_length_filter($this->env, (isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors"))) > 0)) {
  1151. // line 345
  1152. echo " <ul>
  1153. ";
  1154. // line 346
  1155. $context['_parent'] = (array) $context;
  1156. $context['_seq'] = twig_ensure_traversable((isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors")));
  1157. foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  1158. // line 347
  1159. echo " <li>";
  1160. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["error"]) ? $context["error"] : $this->getContext($context, "error")), "message"), "html", null, true);
  1161. echo "</li>
  1162. ";
  1163. }
  1164. $_parent = $context['_parent'];
  1165. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  1166. $context = array_intersect_key($context, $_parent) + $_parent;
  1167. // line 349
  1168. echo " </ul>
  1169. ";

Large files files are truncated, but you can click here to view the full file