92c1104edcb0671207d9776e5243.php 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. /* SensioDistributionBundle::Configurator/form.html.twig */
  3. class __TwigTemplate_13cc92c1104edcb0671207d9776e5243 extends Twig_Template
  4. {
  5. protected $parent;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->parent = array();
  10. $this->blocks = array(
  11. 'field_rows' => array($this, 'block_field_rows'),
  12. 'field_row' => array($this, 'block_field_row'),
  13. 'field_label' => array($this, 'block_field_label'),
  14. );
  15. }
  16. public function getParent(array $context)
  17. {
  18. $parent = "form_div_layout.html.twig";
  19. if ($parent instanceof Twig_Template) {
  20. $name = $parent->getTemplateName();
  21. $this->parent[$name] = $parent;
  22. $parent = $name;
  23. } elseif (!isset($this->parent[$parent])) {
  24. $this->parent[$parent] = $this->env->loadTemplate($parent);
  25. }
  26. return $this->parent[$parent];
  27. }
  28. protected function doDisplay(array $context, array $blocks = array())
  29. {
  30. $context = array_merge($this->env->getGlobals(), $context);
  31. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  32. }
  33. // line 3
  34. public function block_field_rows($context, array $blocks = array())
  35. {
  36. // line 4
  37. echo " <div class=\"symfony-form-errors\">
  38. ";
  39. // line 5
  40. echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
  41. echo "
  42. </div>
  43. ";
  44. // line 7
  45. $context['_parent'] = (array) $context;
  46. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'form'), "children", array(), "any", false));
  47. foreach ($context['_seq'] as $context['_key'] => $context['child']) {
  48. // line 8
  49. echo " ";
  50. echo $this->env->getExtension('form')->renderRow($this->getContext($context, 'child'));
  51. echo "
  52. ";
  53. }
  54. $_parent = $context['_parent'];
  55. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  56. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  57. }
  58. // line 12
  59. public function block_field_row($context, array $blocks = array())
  60. {
  61. // line 13
  62. echo " <div class=\"symfony-form-row\">
  63. ";
  64. // line 14
  65. echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'form'));
  66. echo "
  67. <div class=\"symfony-form-field\">
  68. ";
  69. // line 16
  70. echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form'));
  71. echo "
  72. <div class=\"symfony-form-errors\">
  73. ";
  74. // line 18
  75. echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
  76. echo "
  77. </div>
  78. </div>
  79. </div>
  80. ";
  81. }
  82. // line 24
  83. public function block_field_label($context, array $blocks = array())
  84. {
  85. // line 25
  86. echo " <label for=\"";
  87. echo twig_escape_filter($this->env, $this->getContext($context, 'id'), "html");
  88. echo "\">
  89. ";
  90. // line 26
  91. echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'label')), "html");
  92. echo "
  93. ";
  94. // line 27
  95. if ($this->getContext($context, 'required')) {
  96. // line 28
  97. echo " <span class=\"symfony-form-required\" title=\"This field is required\">*</span>
  98. ";
  99. }
  100. // line 30
  101. echo " </label>
  102. ";
  103. }
  104. public function getTemplateName()
  105. {
  106. return "SensioDistributionBundle::Configurator/form.html.twig";
  107. }
  108. public function isTraitable()
  109. {
  110. return false;
  111. }
  112. }