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

/var/cache/prod/twig/92/92f61c6acb554399b6ce070e5fad34a3e99b12d7208bcd6c9d5e69c9800efb5d.php

https://bitbucket.org/sicomore/next-op-exercise
PHP | 266 lines | 177 code | 19 blank | 70 comment | 8 complexity | 9096f67d7c669ef1e548959af4d6d8a0 MD5 | raw file
Possible License(s): LGPL-2.0, Unlicense, Apache-2.0, BSD-3-Clause
  1. <?php
  2. /* bootstrap_4_horizontal_layout.html.twig */
  3. class __TwigTemplate_ef154e364948b0b1740b2d6187dd2338e70c9285b058d481e6f62a3371c373d9 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $_trait_0 = $this->loadTemplate("bootstrap_4_layout.html.twig", "bootstrap_4_horizontal_layout.html.twig", 1);
  10. // line 1
  11. if (!$_trait_0->isTraitable()) {
  12. throw new Twig_Error_Runtime('Template "'."bootstrap_4_layout.html.twig".'" cannot be used as a trait.');
  13. }
  14. $_trait_0_blocks = $_trait_0->getBlocks();
  15. $this->traits = $_trait_0_blocks;
  16. $this->blocks = array_merge(
  17. $this->traits,
  18. array(
  19. 'form_label' => array($this, 'block_form_label'),
  20. 'form_label_class' => array($this, 'block_form_label_class'),
  21. 'form_row' => array($this, 'block_form_row'),
  22. 'fieldset_form_row' => array($this, 'block_fieldset_form_row'),
  23. 'submit_row' => array($this, 'block_submit_row'),
  24. 'reset_row' => array($this, 'block_reset_row'),
  25. 'form_group_class' => array($this, 'block_form_group_class'),
  26. 'checkbox_row' => array($this, 'block_checkbox_row'),
  27. )
  28. );
  29. }
  30. protected function doDisplay(array $context, array $blocks = array())
  31. {
  32. // line 2
  33. echo "
  34. ";
  35. // line 4
  36. echo "
  37. ";
  38. // line 5
  39. $this->displayBlock('form_label', $context, $blocks);
  40. // line 16
  41. echo "
  42. ";
  43. // line 17
  44. $this->displayBlock('form_label_class', $context, $blocks);
  45. // line 20
  46. echo "
  47. ";
  48. // line 22
  49. echo "
  50. ";
  51. // line 23
  52. $this->displayBlock('form_row', $context, $blocks);
  53. // line 35
  54. echo "
  55. ";
  56. // line 36
  57. $this->displayBlock('fieldset_form_row', $context, $blocks);
  58. // line 46
  59. echo "
  60. ";
  61. // line 47
  62. $this->displayBlock('submit_row', $context, $blocks);
  63. // line 55
  64. echo "
  65. ";
  66. // line 56
  67. $this->displayBlock('reset_row', $context, $blocks);
  68. // line 64
  69. echo "
  70. ";
  71. // line 65
  72. $this->displayBlock('form_group_class', $context, $blocks);
  73. // line 68
  74. echo "
  75. ";
  76. // line 69
  77. $this->displayBlock('checkbox_row', $context, $blocks);
  78. }
  79. // line 5
  80. public function block_form_label($context, array $blocks = array())
  81. {
  82. // line 6
  83. if (((isset($context["label"]) ? $context["label"] : null) === false)) {
  84. // line 7
  85. echo "<div class=\"";
  86. $this->displayBlock("form_label_class", $context, $blocks);
  87. echo "\"></div>";
  88. } else {
  89. // line 9
  90. if (( !array_key_exists("expanded", $context) || !(isset($context["expanded"]) ? $context["expanded"] : null))) {
  91. // line 10
  92. $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) ? $context["label_attr"] : null), array("class" => twig_trim_filter(((($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class", array()), "")) : ("")) . " col-form-label"))));
  93. }
  94. // line 12
  95. $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) ? $context["label_attr"] : null), array("class" => twig_trim_filter((((($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class", array()), "")) : ("")) . " ") . $this->renderBlock("form_label_class", $context, $blocks)))));
  96. // line 13
  97. $this->displayParentBlock("form_label", $context, $blocks);
  98. }
  99. }
  100. // line 17
  101. public function block_form_label_class($context, array $blocks = array())
  102. {
  103. // line 18
  104. echo "col-sm-2";
  105. }
  106. // line 23
  107. public function block_form_row($context, array $blocks = array())
  108. {
  109. // line 24
  110. if ((array_key_exists("expanded", $context) && (isset($context["expanded"]) ? $context["expanded"] : null))) {
  111. // line 25
  112. $this->displayBlock("fieldset_form_row", $context, $blocks);
  113. } else {
  114. // line 27
  115. echo "<div class=\"form-group row";
  116. if ((( !(isset($context["compound"]) ? $context["compound"] : null) || ((array_key_exists("force_error", $context)) ? (_twig_default_filter((isset($context["force_error"]) ? $context["force_error"] : null), false)) : (false))) && !(isset($context["valid"]) ? $context["valid"] : null))) {
  117. echo " is-invalid";
  118. }
  119. echo "\">";
  120. // line 28
  121. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'label');
  122. // line 29
  123. echo "<div class=\"";
  124. $this->displayBlock("form_group_class", $context, $blocks);
  125. echo "\">";
  126. // line 30
  127. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'widget');
  128. // line 31
  129. echo "</div>
  130. ";
  131. // line 32
  132. echo "</div>";
  133. }
  134. }
  135. // line 36
  136. public function block_fieldset_form_row($context, array $blocks = array())
  137. {
  138. // line 37
  139. echo "<fieldset class=\"form-group\">
  140. <div class=\"row";
  141. // line 38
  142. if ((( !(isset($context["compound"]) ? $context["compound"] : null) || ((array_key_exists("force_error", $context)) ? (_twig_default_filter((isset($context["force_error"]) ? $context["force_error"] : null), false)) : (false))) && !(isset($context["valid"]) ? $context["valid"] : null))) {
  143. echo " is-invalid";
  144. }
  145. echo "\">";
  146. // line 39
  147. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'label');
  148. // line 40
  149. echo "<div class=\"";
  150. $this->displayBlock("form_group_class", $context, $blocks);
  151. echo "\">";
  152. // line 41
  153. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'widget');
  154. // line 42
  155. echo "</div>
  156. </div>
  157. ";
  158. // line 44
  159. echo "</fieldset>";
  160. }
  161. // line 47
  162. public function block_submit_row($context, array $blocks = array())
  163. {
  164. // line 48
  165. echo "<div class=\"form-group row\">";
  166. // line 49
  167. echo "<div class=\"";
  168. $this->displayBlock("form_label_class", $context, $blocks);
  169. echo "\"></div>";
  170. // line 50
  171. echo "<div class=\"";
  172. $this->displayBlock("form_group_class", $context, $blocks);
  173. echo "\">";
  174. // line 51
  175. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'widget');
  176. // line 52
  177. echo "</div>";
  178. // line 53
  179. echo "</div>";
  180. }
  181. // line 56
  182. public function block_reset_row($context, array $blocks = array())
  183. {
  184. // line 57
  185. echo "<div class=\"form-group row\">";
  186. // line 58
  187. echo "<div class=\"";
  188. $this->displayBlock("form_label_class", $context, $blocks);
  189. echo "\"></div>";
  190. // line 59
  191. echo "<div class=\"";
  192. $this->displayBlock("form_group_class", $context, $blocks);
  193. echo "\">";
  194. // line 60
  195. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'widget');
  196. // line 61
  197. echo "</div>";
  198. // line 62
  199. echo "</div>";
  200. }
  201. // line 65
  202. public function block_form_group_class($context, array $blocks = array())
  203. {
  204. // line 66
  205. echo "col-sm-10";
  206. }
  207. // line 69
  208. public function block_checkbox_row($context, array $blocks = array())
  209. {
  210. // line 70
  211. echo "<div class=\"form-group row\">";
  212. // line 71
  213. echo "<div class=\"";
  214. $this->displayBlock("form_label_class", $context, $blocks);
  215. echo "\"></div>";
  216. // line 72
  217. echo "<div class=\"";
  218. $this->displayBlock("form_group_class", $context, $blocks);
  219. echo "\">";
  220. // line 73
  221. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'widget');
  222. // line 74
  223. echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : null), 'errors');
  224. // line 75
  225. echo "</div>";
  226. // line 76
  227. echo "</div>";
  228. }
  229. public function getTemplateName()
  230. {
  231. return "bootstrap_4_horizontal_layout.html.twig";
  232. }
  233. public function getDebugInfo()
  234. {
  235. return array ( 241 => 76, 239 => 75, 237 => 74, 235 => 73, 231 => 72, 227 => 71, 225 => 70, 222 => 69, 218 => 66, 215 => 65, 211 => 62, 209 => 61, 207 => 60, 203 => 59, 199 => 58, 197 => 57, 194 => 56, 190 => 53, 188 => 52, 186 => 51, 182 => 50, 178 => 49, 176 => 48, 173 => 47, 169 => 44, 165 => 42, 163 => 41, 159 => 40, 157 => 39, 152 => 38, 149 => 37, 146 => 36, 141 => 32, 138 => 31, 136 => 30, 132 => 29, 130 => 28, 124 => 27, 121 => 25, 119 => 24, 116 => 23, 112 => 18, 109 => 17, 104 => 13, 102 => 12, 99 => 10, 97 => 9, 92 => 7, 90 => 6, 87 => 5, 83 => 69, 80 => 68, 78 => 65, 75 => 64, 73 => 56, 70 => 55, 68 => 47, 65 => 46, 63 => 36, 60 => 35, 58 => 23, 55 => 22, 52 => 20, 50 => 17, 47 => 16, 45 => 5, 42 => 4, 39 => 2, 14 => 1,);
  236. }
  237. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  238. public function getSource()
  239. {
  240. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  241. return $this->getSourceContext()->getCode();
  242. }
  243. public function getSourceContext()
  244. {
  245. return new Twig_Source("", "bootstrap_4_horizontal_layout.html.twig", "/Users/sicomore/Documents/PRO/Etudes-Pro/Etudes-Diplomes/Google_Drive_MEB/IFOCOP/IFOCOP/Cours/Symfony/next-op-articles/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_horizontal_layout.html.twig");
  246. }
  247. }