PageRenderTime 50ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/dev/twig/12/39/bfea847e1516e18b7c731eaeab32.php

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