var/cache/dev/twig/73/73cc08864bf45b0c171aa07a7fef7ef2bc7f40ea08a89918c015824e76102069.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* division/_form.html.twig */
  14. class __TwigTemplate_7c9046454d8a2219876c96d1fb6a1b9f5eb1f63f87cd90d2c973cbd1b527568a extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""division/_form.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""division/_form.html.twig"));
  33.         // line 1
  34.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'1$this->source); })()), 'form_start');
  35.         echo "
  36.     <div class=\"form-group\">
  37.         <label class=\"control-label\">Division mère</label>
  38.         <select class=\"form-control parent\" id=\"parent\" name=\"parent\" required>
  39.             <option selected disabled>Sélectionner la division mère</option>
  40.             ";
  41.         // line 6
  42.         $context['_parent'] = $context;
  43.         $context['_seq'] = twig_ensure_traversable((isset($context["divisions"]) || array_key_exists("divisions"$context) ? $context["divisions"] : (function () { throw new RuntimeError('Variable "divisions" does not exist.'6$this->source); })()));
  44.         foreach ($context['_seq'] as $context["_key"] => $context["divi"]) {
  45.             // line 7
  46.             echo "                 <option value=\"";
  47.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["divi"], "id", [], "any"falsefalsefalse7), "html"nulltrue);
  48.             echo "\">";
  49.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["divi"], "intitule", [], "any"falsefalsefalse7), "html"nulltrue);
  50.             echo "</option>
  51.             ";
  52.         }
  53.         $_parent $context['_parent'];
  54.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['divi'], $context['_parent'], $context['loop']);
  55.         $context array_intersect_key($context$_parent) + $_parent;
  56.         // line 9
  57.         echo "        </select>
  58.     </div>
  59.     ";
  60.         // line 11
  61.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'11$this->source); })()), 'widget');
  62.         echo "
  63.     <button class=\"btn btn-primary btn-flat float-right\">";
  64.         // line 12
  65.         echo twig_escape_filter($this->env, (((isset($context["button_label"]) || array_key_exists("button_label"$context))) ? (_twig_default_filter((isset($context["button_label"]) || array_key_exists("button_label"$context) ? $context["button_label"] : (function () { throw new RuntimeError('Variable "button_label" does not exist.'12$this->source); })()), "Save")) : ("Save")), "html"nulltrue);
  66.         echo "</button>
  67. ";
  68.         // line 13
  69.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'13$this->source); })()), 'form_end');
  70.         echo "
  71. ";
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.     }
  77.     public function getTemplateName()
  78.     {
  79.         return "division/_form.html.twig";
  80.     }
  81.     public function isTraitable()
  82.     {
  83.         return false;
  84.     }
  85.     public function getDebugInfo()
  86.     {
  87.         return array (  78 => 13,  74 => 12,  70 => 11,  66 => 9,  55 => 7,  51 => 6,  43 => 1,);
  88.     }
  89.     public function getSourceContext()
  90.     {
  91.         return new Source("{{ form_start(form) }}
  92.     <div class=\"form-group\">
  93.         <label class=\"control-label\">Division mère</label>
  94.         <select class=\"form-control parent\" id=\"parent\" name=\"parent\" required>
  95.             <option selected disabled>Sélectionner la division mère</option>
  96.             {% for divi in divisions %}
  97.                  <option value=\"{{divi.id}}\">{{divi.intitule}}</option>
  98.             {% endfor %}
  99.         </select>
  100.     </div>
  101.     {{ form_widget(form) }}
  102.     <button class=\"btn btn-primary btn-flat float-right\">{{ button_label|default('Save') }}</button>
  103. {{ form_end(form) }}
  104. ""division/_form.html.twig""/var/www/vhosts/kli.kamer-center.net/httpdocs/kli/templates/division/_form.html.twig");
  105.     }
  106. }