PageRenderTime 36ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/parivartree260614/parivartree/app/cache/dev/twig/53/0e/843d80d3a97d59eb0770fa5b0b6ad15071908f64c67c2c2700b50af22845.php

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