d626d1228e6630bbef6f88f4c952.php 37KB

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