var/cache/dev/twig/27/27da0183ee4eb3dd59c1ee8765113e0c.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* classroom/edit.html.twig */
  16. class __TwigTemplate_288bd7bf828de24a9f1b66e0670c0567 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'content' => [$this'block_content'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32.     {
  33.         // line 1
  34.         return "layout/backEndLayout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = []): iterable
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""classroom/edit.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""classroom/edit.html.twig"));
  43.         // line 3
  44.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'3$this->source); })()), ["bootstrap_4_layout.html.twig"], true);
  45.         // line 1
  46.         $this->parent $this->loadTemplate("layout/backEndLayout.html.twig""classroom/edit.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 5
  54.     /**
  55.      * @return iterable<null|scalar|\Stringable>
  56.      */
  57.     public function block_content(array $context, array $blocks = []): iterable
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  64.         // line 6
  65.         yield "    <h1 class=\"center\">
  66.         Edition Salle de classe
  67.     </h1>
  68.     <div class=\"row mt-4\">
  69.         <div class=\"col-2 \">
  70.             <div class=\"btn-group record_actions  m-2\">
  71.                 <a class=\"btn btn-info\" href=\"";
  72.         // line 13
  73.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms");
  74.         yield "\">
  75.                     <i class=\"fa fa-list\"></i>
  76.                     ";
  77.         // line 15
  78.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to the list", [], "admin"), "html"nulltrue);
  79.         yield "
  80.                 </a>
  81.             </div>
  82.         </div>
  83.         <div class=\"col-10 jumbotron  mx-auto\">
  84.             <div class=\"col-md-7 mx-auto\">
  85.                 <article class=\"text-center\">
  86.                     <br/>
  87.                     <div class=\"card-header\">
  88.                         <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
  89.                             Edit room #  
  90.                             ";
  91.         // line 27
  92.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["room"]) || array_key_exists("room"$context) ? $context["room"] : (function () { throw new RuntimeError('Variable "room" does not exist.'27$this->source); })()), "id", [], "any"falsefalsefalse27), "html"nulltrue);
  93.         yield "
  94.                         </h4>
  95.                     </div>
  96.                     ";
  97.         // line 31
  98.         yield Twig\Extension\CoreExtension::include($this->env$context"layout/partials/_form.html.twig", ["submitButtonText" => "Update classroom""returnRoute" => "admin_classrooms"]);
  99.         yield "
  100.                 </article>
  101.             </div>
  102.         </div>
  103.     </div>
  104. ";
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.         yield from [];
  110.     }
  111.     /**
  112.      * @codeCoverageIgnore
  113.      */
  114.     public function getTemplateName(): string
  115.     {
  116.         return "classroom/edit.html.twig";
  117.     }
  118.     /**
  119.      * @codeCoverageIgnore
  120.      */
  121.     public function isTraitable(): bool
  122.     {
  123.         return false;
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function getDebugInfo(): array
  129.     {
  130.         return array (  115 => 31,  108 => 27,  93 => 15,  88 => 13,  79 => 6,  66 => 5,  55 => 1,  53 => 3,  40 => 1,);
  131.     }
  132.     public function getSourceContext(): Source
  133.     {
  134.         return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
  135. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  136. {% block content %}
  137.     <h1 class=\"center\">
  138.         Edition Salle de classe
  139.     </h1>
  140.     <div class=\"row mt-4\">
  141.         <div class=\"col-2 \">
  142.             <div class=\"btn-group record_actions  m-2\">
  143.                 <a class=\"btn btn-info\" href=\"{{ path('admin_classrooms') }}\">
  144.                     <i class=\"fa fa-list\"></i>
  145.                     {{ 'Back to the list'|trans({}, 'admin') }}
  146.                 </a>
  147.             </div>
  148.         </div>
  149.         <div class=\"col-10 jumbotron  mx-auto\">
  150.             <div class=\"col-md-7 mx-auto\">
  151.                 <article class=\"text-center\">
  152.                     <br/>
  153.                     <div class=\"card-header\">
  154.                         <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
  155.                             Edit room #  
  156.                             {{ room.id }}
  157.                         </h4>
  158.                     </div>
  159.                     {{ include('layout/partials/_form.html.twig',{'submitButtonText':'Update classroom', 'returnRoute':'admin_classrooms'}) }}
  160.                 </article>
  161.             </div>
  162.         </div>
  163.     </div>
  164. {% endblock %}
  165. ""classroom/edit.html.twig""/var/www/prod/current/templates/classroom/edit.html.twig");
  166.     }
  167. }