PageRenderTime 99ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/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

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

  1. <?php
  2. /* form_div_layout.html.twig */
  3. class __TwigTemplate_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

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