parent = array(); $this->blocks = array( 'field_rows' => array($this, 'block_field_rows'), 'field_row' => array($this, 'block_field_row'), 'field_label' => array($this, 'block_field_label'), ); } public function getParent(array $context) { $parent = "form_div_layout.html.twig"; if ($parent instanceof Twig_Template) { $name = $parent->getTemplateName(); $this->parent[$name] = $parent; $parent = $name; } elseif (!isset($this->parent[$parent])) { $this->parent[$parent] = $this->env->loadTemplate($parent); } return $this->parent[$parent]; } protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_field_rows($context, array $blocks = array()) { // line 4 echo "
"; // line 5 echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form')); echo "
"; // line 7 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'form'), "children", array(), "any", false)); foreach ($context['_seq'] as $context['_key'] => $context['child']) { // line 8 echo " "; echo $this->env->getExtension('form')->renderRow($this->getContext($context, 'child')); echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); } // line 12 public function block_field_row($context, array $blocks = array()) { // line 13 echo "
"; // line 14 echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'form')); echo "
"; // line 16 echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form')); echo "
"; // line 18 echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form')); echo "
"; } // line 24 public function block_field_label($context, array $blocks = array()) { // line 25 echo " "; } public function getTemplateName() { return "SensioDistributionBundle::Configurator/form.html.twig"; } public function isTraitable() { return false; } }