PageRenderTime 58ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/app/cache/dev/twig/24/7e/aa316501e6b1517dd912e32bc27d.php

https://bitbucket.org/beger/sistemagestioncevicheria
PHP | 1019 lines | 749 code | 37 blank | 233 comment | 35 complexity | c565927bc7549abf87b51c54ef24b861 MD5 | raw file
Possible License(s): LGPL-3.0, BSD-3-Clause, BSD-2-Clause, Apache-2.0, LGPL-2.1
  1. <?php
  2. /* form_div_layout.html.twig */
  3. class __TwigTemplate_247eaa316501e6b1517dd912e32bc27d extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->blocks = array(
  9. 'form_widget' => array($this, 'block_form_widget'),
  10. 'collection_widget' => array($this, 'block_collection_widget'),
  11. 'textarea_widget' => array($this, 'block_textarea_widget'),
  12. 'widget_choice_options' => array($this, 'block_widget_choice_options'),
  13. 'choice_widget' => array($this, 'block_choice_widget'),
  14. 'checkbox_widget' => array($this, 'block_checkbox_widget'),
  15. 'radio_widget' => array($this, 'block_radio_widget'),
  16. 'datetime_widget' => array($this, 'block_datetime_widget'),
  17. 'date_widget' => array($this, 'block_date_widget'),
  18. 'time_widget' => array($this, 'block_time_widget'),
  19. 'number_widget' => array($this, 'block_number_widget'),
  20. 'integer_widget' => array($this, 'block_integer_widget'),
  21. 'money_widget' => array($this, 'block_money_widget'),
  22. 'url_widget' => array($this, 'block_url_widget'),
  23. 'search_widget' => array($this, 'block_search_widget'),
  24. 'percent_widget' => array($this, 'block_percent_widget'),
  25. 'field_widget' => array($this, 'block_field_widget'),
  26. 'password_widget' => array($this, 'block_password_widget'),
  27. 'hidden_widget' => array($this, 'block_hidden_widget'),
  28. 'email_widget' => array($this, 'block_email_widget'),
  29. 'generic_label' => array($this, 'block_generic_label'),
  30. 'field_label' => array($this, 'block_field_label'),
  31. 'form_label' => array($this, 'block_form_label'),
  32. 'repeated_row' => array($this, 'block_repeated_row'),
  33. 'field_row' => array($this, 'block_field_row'),
  34. 'hidden_row' => array($this, 'block_hidden_row'),
  35. 'field_enctype' => array($this, 'block_field_enctype'),
  36. 'field_errors' => array($this, 'block_field_errors'),
  37. 'field_rest' => array($this, 'block_field_rest'),
  38. 'field_rows' => array($this, 'block_field_rows'),
  39. 'widget_attributes' => array($this, 'block_widget_attributes'),
  40. 'widget_container_attributes' => array($this, 'block_widget_container_attributes'),
  41. );
  42. }
  43. protected function doDisplay(array $context, array $blocks = array())
  44. {
  45. // line 2
  46. echo "
  47. ";
  48. // line 3
  49. $this->displayBlock('form_widget', $context, $blocks);
  50. // line 11
  51. echo "
  52. ";
  53. // line 12
  54. $this->displayBlock('collection_widget', $context, $blocks);
  55. // line 20
  56. echo "
  57. ";
  58. // line 21
  59. $this->displayBlock('textarea_widget', $context, $blocks);
  60. // line 26
  61. echo "
  62. ";
  63. // line 27
  64. $this->displayBlock('widget_choice_options', $context, $blocks);
  65. // line 42
  66. echo "
  67. ";
  68. // line 43
  69. $this->displayBlock('choice_widget', $context, $blocks);
  70. // line 70
  71. echo "
  72. ";
  73. // line 71
  74. $this->displayBlock('checkbox_widget', $context, $blocks);
  75. // line 76
  76. echo "
  77. ";
  78. // line 77
  79. $this->displayBlock('radio_widget', $context, $blocks);
  80. // line 82
  81. echo "
  82. ";
  83. // line 83
  84. $this->displayBlock('datetime_widget', $context, $blocks);
  85. // line 97
  86. echo "
  87. ";
  88. // line 98
  89. $this->displayBlock('date_widget', $context, $blocks);
  90. // line 113
  91. echo "
  92. ";
  93. // line 114
  94. $this->displayBlock('time_widget', $context, $blocks);
  95. // line 125
  96. echo "
  97. ";
  98. // line 126
  99. $this->displayBlock('number_widget', $context, $blocks);
  100. // line 133
  101. echo "
  102. ";
  103. // line 134
  104. $this->displayBlock('integer_widget', $context, $blocks);
  105. // line 140
  106. echo "
  107. ";
  108. // line 141
  109. $this->displayBlock('money_widget', $context, $blocks);
  110. // line 146
  111. echo "
  112. ";
  113. // line 147
  114. $this->displayBlock('url_widget', $context, $blocks);
  115. // line 153
  116. echo "
  117. ";
  118. // line 154
  119. $this->displayBlock('search_widget', $context, $blocks);
  120. // line 160
  121. echo "
  122. ";
  123. // line 161
  124. $this->displayBlock('percent_widget', $context, $blocks);
  125. // line 167
  126. echo "
  127. ";
  128. // line 168
  129. $this->displayBlock('field_widget', $context, $blocks);
  130. // line 174
  131. echo "
  132. ";
  133. // line 175
  134. $this->displayBlock('password_widget', $context, $blocks);
  135. // line 181
  136. echo "
  137. ";
  138. // line 182
  139. $this->displayBlock('hidden_widget', $context, $blocks);
  140. // line 186
  141. echo "
  142. ";
  143. // line 187
  144. $this->displayBlock('email_widget', $context, $blocks);
  145. // line 193
  146. echo "
  147. ";
  148. // line 195
  149. echo "
  150. ";
  151. // line 196
  152. $this->displayBlock('generic_label', $context, $blocks);
  153. // line 204
  154. echo "
  155. ";
  156. // line 205
  157. $this->displayBlock('field_label', $context, $blocks);
  158. // line 211
  159. echo "
  160. ";
  161. // line 212
  162. $this->displayBlock('form_label', $context, $blocks);
  163. // line 217
  164. echo "
  165. ";
  166. // line 219
  167. echo "
  168. ";
  169. // line 220
  170. $this->displayBlock('repeated_row', $context, $blocks);
  171. // line 225
  172. echo "
  173. ";
  174. // line 226
  175. $this->displayBlock('field_row', $context, $blocks);
  176. // line 235
  177. echo "
  178. ";
  179. // line 236
  180. $this->displayBlock('hidden_row', $context, $blocks);
  181. // line 239
  182. echo "
  183. ";
  184. // line 241
  185. echo "
  186. ";
  187. // line 242
  188. $this->displayBlock('field_enctype', $context, $blocks);
  189. // line 247
  190. echo "
  191. ";
  192. // line 248
  193. $this->displayBlock('field_errors', $context, $blocks);
  194. // line 259
  195. echo "
  196. ";
  197. // line 260
  198. $this->displayBlock('field_rest', $context, $blocks);
  199. // line 269
  200. echo "
  201. ";
  202. // line 271
  203. echo "
  204. ";
  205. // line 272
  206. $this->displayBlock('field_rows', $context, $blocks);
  207. // line 280
  208. echo "
  209. ";
  210. // line 281
  211. $this->displayBlock('widget_attributes', $context, $blocks);
  212. // line 287
  213. echo "
  214. ";
  215. // line 288
  216. $this->displayBlock('widget_container_attributes', $context, $blocks);
  217. }
  218. // line 3
  219. public function block_form_widget($context, array $blocks = array())
  220. {
  221. // line 4
  222. ob_start();
  223. // line 5
  224. echo " <div ";
  225. $this->displayBlock("widget_container_attributes", $context, $blocks);
  226. echo ">
  227. ";
  228. // line 6
  229. $this->displayBlock("field_rows", $context, $blocks);
  230. echo "
  231. ";
  232. // line 7
  233. echo $this->env->getExtension('form')->renderRest($this->getContext($context, "form"));
  234. echo "
  235. </div>
  236. ";
  237. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  238. }
  239. // line 12
  240. public function block_collection_widget($context, array $blocks = array())
  241. {
  242. // line 13
  243. ob_start();
  244. // line 14
  245. echo " ";
  246. if (array_key_exists("prototype", $context)) {
  247. // line 15
  248. echo " ";
  249. $context["attr"] = twig_array_merge($this->getContext($context, "attr"), array("data-prototype" => $this->env->getExtension('form')->renderRow($this->getContext($context, "prototype"))));
  250. // line 16
  251. echo " ";
  252. }
  253. // line 17
  254. echo " ";
  255. $this->displayBlock("form_widget", $context, $blocks);
  256. echo "
  257. ";
  258. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  259. }
  260. // line 21
  261. public function block_textarea_widget($context, array $blocks = array())
  262. {
  263. // line 22
  264. ob_start();
  265. // line 23
  266. echo " <textarea ";
  267. $this->displayBlock("widget_attributes", $context, $blocks);
  268. echo ">";
  269. echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
  270. echo "</textarea>
  271. ";
  272. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  273. }
  274. // line 27
  275. public function block_widget_choice_options($context, array $blocks = array())
  276. {
  277. // line 28
  278. ob_start();
  279. // line 29
  280. echo " ";
  281. $context['_parent'] = (array) $context;
  282. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "options"));
  283. foreach ($context['_seq'] as $context["choice"] => $context["label"]) {
  284. // line 30
  285. echo " ";
  286. if ($this->env->getExtension('form')->isChoiceGroup($this->getContext($context, "label"))) {
  287. // line 31
  288. echo " <optgroup label=\"";
  289. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "choice")), "html", null, true);
  290. echo "\">
  291. ";
  292. // line 32
  293. $context['_parent'] = (array) $context;
  294. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "label"));
  295. foreach ($context['_seq'] as $context["nestedChoice"] => $context["nestedLabel"]) {
  296. // line 33
  297. echo " <option value=\"";
  298. echo twig_escape_filter($this->env, $this->getContext($context, "nestedChoice"), "html", null, true);
  299. echo "\"";
  300. if ($this->env->getExtension('form')->isChoiceSelected($this->getContext($context, "form"), $this->getContext($context, "nestedChoice"))) {
  301. echo " selected=\"selected\"";
  302. }
  303. echo ">";
  304. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "nestedLabel")), "html", null, true);
  305. echo "</option>
  306. ";
  307. }
  308. $_parent = $context['_parent'];
  309. unset($context['_seq'], $context['_iterated'], $context['nestedChoice'], $context['nestedLabel'], $context['_parent'], $context['loop']);
  310. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  311. // line 35
  312. echo " </optgroup>
  313. ";
  314. } else {
  315. // line 37
  316. echo " <option value=\"";
  317. echo twig_escape_filter($this->env, $this->getContext($context, "choice"), "html", null, true);
  318. echo "\"";
  319. if ($this->env->getExtension('form')->isChoiceSelected($this->getContext($context, "form"), $this->getContext($context, "choice"))) {
  320. echo " selected=\"selected\"";
  321. }
  322. echo ">";
  323. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "label")), "html", null, true);
  324. echo "</option>
  325. ";
  326. }
  327. // line 39
  328. echo " ";
  329. }
  330. $_parent = $context['_parent'];
  331. unset($context['_seq'], $context['_iterated'], $context['choice'], $context['label'], $context['_parent'], $context['loop']);
  332. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  333. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  334. }
  335. // line 43
  336. public function block_choice_widget($context, array $blocks = array())
  337. {
  338. // line 44
  339. ob_start();
  340. // line 45
  341. echo " ";
  342. if ($this->getContext($context, "expanded")) {
  343. // line 46
  344. echo " <div ";
  345. $this->displayBlock("widget_container_attributes", $context, $blocks);
  346. echo ">
  347. ";
  348. // line 47
  349. $context['_parent'] = (array) $context;
  350. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
  351. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  352. // line 48
  353. echo " ";
  354. echo $this->env->getExtension('form')->renderWidget($this->getContext($context, "child"));
  355. echo "
  356. ";
  357. // line 49
  358. echo $this->env->getExtension('form')->renderLabel($this->getContext($context, "child"));
  359. echo "
  360. ";
  361. }
  362. $_parent = $context['_parent'];
  363. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  364. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  365. // line 51
  366. echo " </div>
  367. ";
  368. } else {
  369. // line 53
  370. echo " <select ";
  371. $this->displayBlock("widget_attributes", $context, $blocks);
  372. if ($this->getContext($context, "multiple")) {
  373. echo " multiple=\"multiple\"";
  374. }
  375. echo ">
  376. ";
  377. // line 54
  378. if ((!(null === $this->getContext($context, "empty_value")))) {
  379. // line 55
  380. echo " <option value=\"\">";
  381. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "empty_value")), "html", null, true);
  382. echo "</option>
  383. ";
  384. }
  385. // line 57
  386. echo " ";
  387. if ((twig_length_filter($this->env, $this->getContext($context, "preferred_choices")) > 0)) {
  388. // line 58
  389. echo " ";
  390. $context["options"] = $this->getContext($context, "preferred_choices");
  391. // line 59
  392. echo " ";
  393. $this->displayBlock("widget_choice_options", $context, $blocks);
  394. echo "
  395. ";
  396. // line 60
  397. if (((twig_length_filter($this->env, $this->getContext($context, "choices")) > 0) && (!(null === $this->getContext($context, "separator"))))) {
  398. // line 61
  399. echo " <option disabled=\"disabled\">";
  400. echo twig_escape_filter($this->env, $this->getContext($context, "separator"), "html", null, true);
  401. echo "</option>
  402. ";
  403. }
  404. // line 63
  405. echo " ";
  406. }
  407. // line 64
  408. echo " ";
  409. $context["options"] = $this->getContext($context, "choices");
  410. // line 65
  411. echo " ";
  412. $this->displayBlock("widget_choice_options", $context, $blocks);
  413. echo "
  414. </select>
  415. ";
  416. }
  417. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  418. }
  419. // line 71
  420. public function block_checkbox_widget($context, array $blocks = array())
  421. {
  422. // line 72
  423. ob_start();
  424. // line 73
  425. echo " <input type=\"checkbox\" ";
  426. $this->displayBlock("widget_attributes", $context, $blocks);
  427. if (array_key_exists("value", $context)) {
  428. echo " value=\"";
  429. echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
  430. echo "\"";
  431. }
  432. if ($this->getContext($context, "checked")) {
  433. echo " checked=\"checked\"";
  434. }
  435. echo " />
  436. ";
  437. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  438. }
  439. // line 77
  440. public function block_radio_widget($context, array $blocks = array())
  441. {
  442. // line 78
  443. ob_start();
  444. // line 79
  445. echo " <input type=\"radio\" ";
  446. $this->displayBlock("widget_attributes", $context, $blocks);
  447. if (array_key_exists("value", $context)) {
  448. echo " value=\"";
  449. echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
  450. echo "\"";
  451. }
  452. if ($this->getContext($context, "checked")) {
  453. echo " checked=\"checked\"";
  454. }
  455. echo " />
  456. ";
  457. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  458. }
  459. // line 83
  460. public function block_datetime_widget($context, array $blocks = array())
  461. {
  462. // line 84
  463. ob_start();
  464. // line 85
  465. echo " ";
  466. if (($this->getContext($context, "widget") == "single_text")) {
  467. // line 86
  468. echo " ";
  469. $this->displayBlock("field_widget", $context, $blocks);
  470. echo "
  471. ";
  472. } else {
  473. // line 88
  474. echo " <div ";
  475. $this->displayBlock("widget_container_attributes", $context, $blocks);
  476. echo ">
  477. ";
  478. // line 89
  479. echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, "form"), "date"));
  480. echo "
  481. ";
  482. // line 90
  483. echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, "form"), "time"));
  484. echo "
  485. ";
  486. // line 91
  487. echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "date"));
  488. echo "
  489. ";
  490. // line 92
  491. echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "time"));
  492. echo "
  493. </div>
  494. ";
  495. }
  496. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  497. }
  498. // line 98
  499. public function block_date_widget($context, array $blocks = array())
  500. {
  501. // line 99
  502. ob_start();
  503. // line 100
  504. echo " ";
  505. if (($this->getContext($context, "widget") == "single_text")) {
  506. // line 101
  507. echo " ";
  508. $this->displayBlock("field_widget", $context, $blocks);
  509. echo "
  510. ";
  511. } else {
  512. // line 103
  513. echo " <div ";
  514. $this->displayBlock("widget_container_attributes", $context, $blocks);
  515. echo ">
  516. ";
  517. // line 104
  518. echo strtr($this->getContext($context, "date_pattern"), array("{{ year }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "year")), "{{ month }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "month")), "{{ day }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "day"))));
  519. // line 108
  520. echo "
  521. </div>
  522. ";
  523. }
  524. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  525. }
  526. // line 114
  527. public function block_time_widget($context, array $blocks = array())
  528. {
  529. // line 115
  530. ob_start();
  531. // line 116
  532. echo " ";
  533. if (($this->getContext($context, "widget") == "single_text")) {
  534. // line 117
  535. echo " ";
  536. $this->displayBlock("field_widget", $context, $blocks);
  537. echo "
  538. ";
  539. } else {
  540. // line 119
  541. echo " <div ";
  542. $this->displayBlock("widget_container_attributes", $context, $blocks);
  543. echo ">
  544. ";
  545. // line 120
  546. echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "hour"), array("attr" => array("size" => "1")));
  547. echo ":";
  548. echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "minute"), array("attr" => array("size" => "1")));
  549. if ($this->getContext($context, "with_seconds")) {
  550. echo ":";
  551. echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "second"), array("attr" => array("size" => "1")));
  552. }
  553. // line 121
  554. echo " </div>
  555. ";
  556. }
  557. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  558. }
  559. // line 126
  560. public function block_number_widget($context, array $blocks = array())
  561. {
  562. // line 127
  563. ob_start();
  564. // line 128
  565. echo " ";
  566. // line 129
  567. echo " ";
  568. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
  569. // line 130
  570. echo " ";
  571. $this->displayBlock("field_widget", $context, $blocks);
  572. echo "
  573. ";
  574. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  575. }
  576. // line 134
  577. public function block_integer_widget($context, array $blocks = array())
  578. {
  579. // line 135
  580. ob_start();
  581. // line 136
  582. echo " ";
  583. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "number")) : ("number"));
  584. // line 137
  585. echo " ";
  586. $this->displayBlock("field_widget", $context, $blocks);
  587. echo "
  588. ";
  589. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  590. }
  591. // line 141
  592. public function block_money_widget($context, array $blocks = array())
  593. {
  594. // line 142
  595. ob_start();
  596. // line 143
  597. echo " ";
  598. echo strtr($this->getContext($context, "money_pattern"), array("{{ widget }}" => $this->renderBlock("field_widget", $context, $blocks)));
  599. echo "
  600. ";
  601. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  602. }
  603. // line 147
  604. public function block_url_widget($context, array $blocks = array())
  605. {
  606. // line 148
  607. ob_start();
  608. // line 149
  609. echo " ";
  610. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "url")) : ("url"));
  611. // line 150
  612. echo " ";
  613. $this->displayBlock("field_widget", $context, $blocks);
  614. echo "
  615. ";
  616. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  617. }
  618. // line 154
  619. public function block_search_widget($context, array $blocks = array())
  620. {
  621. // line 155
  622. ob_start();
  623. // line 156
  624. echo " ";
  625. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "search")) : ("search"));
  626. // line 157
  627. echo " ";
  628. $this->displayBlock("field_widget", $context, $blocks);
  629. echo "
  630. ";
  631. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  632. }
  633. // line 161
  634. public function block_percent_widget($context, array $blocks = array())
  635. {
  636. // line 162
  637. ob_start();
  638. // line 163
  639. echo " ";
  640. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
  641. // line 164
  642. echo " ";
  643. $this->displayBlock("field_widget", $context, $blocks);
  644. echo " %
  645. ";
  646. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  647. }
  648. // line 168
  649. public function block_field_widget($context, array $blocks = array())
  650. {
  651. // line 169
  652. ob_start();
  653. // line 170
  654. echo " ";
  655. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
  656. // line 171
  657. echo " <input type=\"";
  658. echo twig_escape_filter($this->env, $this->getContext($context, "type"), "html", null, true);
  659. echo "\" ";
  660. $this->displayBlock("widget_attributes", $context, $blocks);
  661. echo " ";
  662. if ((!twig_test_empty($this->getContext($context, "value")))) {
  663. echo "value=\"";
  664. echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
  665. echo "\" ";
  666. }
  667. echo "/>
  668. ";
  669. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  670. }
  671. // line 175
  672. public function block_password_widget($context, array $blocks = array())
  673. {
  674. // line 176
  675. ob_start();
  676. // line 177
  677. echo " ";
  678. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "password")) : ("password"));
  679. // line 178
  680. echo " ";
  681. $this->displayBlock("field_widget", $context, $blocks);
  682. echo "
  683. ";
  684. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  685. }
  686. // line 182
  687. public function block_hidden_widget($context, array $blocks = array())
  688. {
  689. // line 183
  690. echo " ";
  691. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "hidden")) : ("hidden"));
  692. // line 184
  693. echo " ";
  694. $this->displayBlock("field_widget", $context, $blocks);
  695. echo "
  696. ";
  697. }
  698. // line 187
  699. public function block_email_widget($context, array $blocks = array())
  700. {
  701. // line 188
  702. ob_start();
  703. // line 189
  704. echo " ";
  705. $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "email")) : ("email"));
  706. // line 190
  707. echo " ";
  708. $this->displayBlock("field_widget", $context, $blocks);
  709. echo "
  710. ";
  711. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  712. }
  713. // line 196
  714. public function block_generic_label($context, array $blocks = array())
  715. {
  716. // line 197
  717. ob_start();
  718. // line 198
  719. echo " ";
  720. if ($this->getContext($context, "required")) {
  721. // line 199
  722. echo " ";
  723. $context["attr"] = twig_array_merge($this->getContext($context, "attr"), array("class" => ((($this->getAttribute($this->getContext($context, "attr", true), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getContext($context, "attr", true), "class"), "")) : ("")) . " required")));
  724. // line 200
  725. echo " ";
  726. }
  727. // line 201
  728. echo " <label";
  729. $context['_parent'] = (array) $context;
  730. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "attr"));
  731. foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  732. echo " ";
  733. echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
  734. echo "=\"";
  735. echo twig_escape_filter($this->env, $this->getContext($context, "attrvalue"), "html", null, true);
  736. echo "\"";
  737. }
  738. $_parent = $context['_parent'];
  739. unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
  740. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  741. echo ">";
  742. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "label")), "html", null, true);
  743. echo "</label>
  744. ";
  745. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  746. }
  747. // line 205
  748. public function block_field_label($context, array $blocks = array())
  749. {
  750. // line 206
  751. ob_start();
  752. // line 207
  753. echo " ";
  754. $context["attr"] = twig_array_merge($this->getContext($context, "attr"), array("for" => $this->getContext($context, "id")));
  755. // line 208
  756. echo " ";
  757. $this->displayBlock("generic_label", $context, $blocks);
  758. echo "
  759. ";
  760. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  761. }
  762. // line 212
  763. public function block_form_label($context, array $blocks = array())
  764. {
  765. // line 213
  766. ob_start();
  767. // line 214
  768. echo " ";
  769. $this->displayBlock("generic_label", $context, $blocks);
  770. echo "
  771. ";
  772. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  773. }
  774. // line 220
  775. public function block_repeated_row($context, array $blocks = array())
  776. {
  777. // line 221
  778. ob_start();
  779. // line 222
  780. echo " ";
  781. $this->displayBlock("field_rows", $context, $blocks);
  782. echo "
  783. ";
  784. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  785. }
  786. // line 226
  787. public function block_field_row($context, array $blocks = array())
  788. {
  789. // line 227
  790. ob_start();
  791. // line 228
  792. echo " <div>
  793. ";
  794. // line 229
  795. echo $this->env->getExtension('form')->renderLabel($this->getContext($context, "form"), ((array_key_exists("label", $context)) ? (_twig_default_filter($this->getContext($context, "label"), null)) : (null)));
  796. echo "
  797. ";
  798. // line 230
  799. echo $this->env->getExtension('form')->renderErrors($this->getContext($context, "form"));
  800. echo "
  801. ";
  802. // line 231
  803. echo $this->env->getExtension('form')->renderWidget($this->getContext($context, "form"));
  804. echo "
  805. </div>
  806. ";
  807. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  808. }
  809. // line 236
  810. public function block_hidden_row($context, array $blocks = array())
  811. {
  812. // line 237
  813. echo " ";
  814. echo $this->env->getExtension('form')->renderWidget($this->getContext($context, "form"));
  815. echo "
  816. ";
  817. }
  818. // line 242
  819. public function block_field_enctype($context, array $blocks = array())
  820. {
  821. // line 243
  822. ob_start();
  823. // line 244
  824. echo " ";
  825. if ($this->getContext($context, "multipart")) {
  826. echo "enctype=\"multipart/form-data\"";
  827. }
  828. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  829. }
  830. // line 248
  831. public function block_field_errors($context, array $blocks = array())
  832. {
  833. // line 249
  834. ob_start();
  835. // line 250
  836. echo " ";
  837. if ((twig_length_filter($this->env, $this->getContext($context, "errors")) > 0)) {
  838. // line 251
  839. echo " <ul>
  840. ";
  841. // line 252
  842. $context['_parent'] = (array) $context;
  843. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "errors"));
  844. foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  845. // line 253
  846. echo " <li>";
  847. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "error"), "messageTemplate"), $this->getAttribute($this->getContext($context, "error"), "messageParameters"), "validators"), "html", null, true);
  848. echo "</li>
  849. ";
  850. }
  851. $_parent = $context['_parent'];
  852. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  853. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  854. // line 255
  855. echo " </ul>
  856. ";
  857. }
  858. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  859. }
  860. // line 260
  861. public function block_field_rest($context, array $blocks = array())
  862. {
  863. // line 261
  864. ob_start();
  865. // line 262
  866. echo " ";
  867. $context['_parent'] = (array) $context;
  868. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
  869. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  870. // line 263
  871. echo " ";
  872. if ((!$this->getAttribute($this->getContext($context, "child"), "rendered"))) {
  873. // line 264
  874. echo " ";
  875. echo $this->env->getExtension('form')->renderRow($this->getContext($context, "child"));
  876. echo "
  877. ";
  878. }
  879. // line 266
  880. echo " ";
  881. }
  882. $_parent = $context['_parent'];
  883. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  884. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  885. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  886. }
  887. // line 272
  888. public function block_field_rows($context, array $blocks = array())
  889. {
  890. // line 273
  891. ob_start();
  892. // line 274
  893. echo " ";
  894. echo $this->env->getExtension('form')->renderErrors($this->getContext($context, "form"));
  895. echo "
  896. ";
  897. // line 275
  898. $context['_parent'] = (array) $context;
  899. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
  900. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  901. // line 276
  902. echo " ";
  903. echo $this->env->getExtension('form')->renderRow($this->getContext($context, "child"));
  904. echo "
  905. ";
  906. }
  907. $_parent = $context['_parent'];
  908. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  909. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  910. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  911. }
  912. // line 281
  913. public function block_widget_attributes($context, array $blocks = array())
  914. {
  915. // line 282
  916. ob_start();
  917. // line 283
  918. echo " id=\"";
  919. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  920. echo "\" name=\"";
  921. echo twig_escape_filter($this->env, $this->getContext($context, "full_name"), "html", null, true);
  922. echo "\"";
  923. if ($this->getContext($context, "read_only")) {
  924. echo " disabled=\"disabled\"";
  925. }
  926. if ($this->getContext($context, "required")) {
  927. echo " required=\"required\"";
  928. }
  929. if ($this->getContext($context, "max_length")) {
  930. echo " maxlength=\"";
  931. echo twig_escape_filter($this->env, $this->getContext($context, "max_length"), "html", null, true);
  932. echo "\"";
  933. }
  934. if ($this->getContext($context, "pattern")) {
  935. echo " pattern=\"";
  936. echo twig_escape_filter($this->env, $this->getContext($context, "pattern"), "html", null, true);
  937. echo "\"";
  938. }
  939. // line 284
  940. echo " ";
  941. $context['_parent'] = (array) $context;
  942. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "attr"));
  943. foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  944. echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
  945. echo "=\"";
  946. echo twig_escape_filter($this->env, $this->getContext($context, "attrvalue"), "html", null, true);
  947. echo "\" ";
  948. }
  949. $_parent = $context['_parent'];
  950. unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
  951. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  952. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  953. }
  954. // line 288
  955. public function block_widget_container_attributes($context, array $blocks = array())
  956. {
  957. // line 289
  958. ob_start();
  959. // line 290
  960. echo " id=\"";
  961. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  962. echo "\"
  963. ";
  964. // line 291
  965. $context['_parent'] = (array) $context;
  966. $context['_seq'] = twig_ensure_traversable($this->getContext($context, "attr"));
  967. foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  968. echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
  969. echo "=\"";
  970. echo twig_escape_filter($this->env, $this->getContext($context, "attrvalue"), "html", null, true);
  971. echo "\" ";
  972. }
  973. $_parent = $context['_parent'];
  974. unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
  975. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  976. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  977. }
  978. public function getTemplateName()
  979. {
  980. return "form_div_layout.html.twig";
  981. }
  982. }