123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?php
-
- /* SensioDistributionBundle::Configurator/form.html.twig */
- class __TwigTemplate_13cc92c1104edcb0671207d9776e5243 extends Twig_Template
- {
- protected $parent;
-
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
-
- $this->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 " <div class=\"symfony-form-errors\">
- ";
- // line 5
- echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
- echo "
- </div>
- ";
- // 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 " <div class=\"symfony-form-row\">
- ";
- // line 14
- echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'form'));
- echo "
- <div class=\"symfony-form-field\">
- ";
- // line 16
- echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form'));
- echo "
- <div class=\"symfony-form-errors\">
- ";
- // line 18
- echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
- echo "
- </div>
- </div>
- </div>
- ";
- }
-
- // line 24
- public function block_field_label($context, array $blocks = array())
- {
- // line 25
- echo " <label for=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'id'), "html");
- echo "\">
- ";
- // line 26
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'label')), "html");
- echo "
- ";
- // line 27
- if ($this->getContext($context, 'required')) {
- // line 28
- echo " <span class=\"symfony-form-required\" title=\"This field is required\">*</span>
- ";
- }
- // line 30
- echo " </label>
- ";
- }
-
- public function getTemplateName()
- {
- return "SensioDistributionBundle::Configurator/form.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|