var/cache/dev/twig/2d/2d4f888aa3f6b16f4ec26230719d5c79.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. /* course/edit.html.twig */
  16. class __TwigTemplate_5ad9533f8edd3cfaa25c961babf754a9 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""course/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""course/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""course/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 6
  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 7
  65.         yield "  
  66.   <div class=\"row mt-4\">
  67.          <div class=\"col-2 \" >
  68.                         <div class=\"btn-group record_actions  m-2\">
  69.                             <a class=\"btn btn-info\" href=\"";
  70.         // line 11
  71.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses");
  72.         yield "\">
  73.                                 <i class=\"fa fa-list\"></i> ";
  74.         // line 12
  75.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to the list", [], "admin"), "html"nulltrue);
  76.         yield "
  77.                             </a>
  78.                         </div>
  79.                     </div>
  80.                                 <div class=\"col-10 jumbotron  mx-auto\">
  81.                     <div class=\"col-md-6 mx-auto\">
  82.                         <article class=\"text-center\">
  83.                             <br/>
  84.                            <div class=\"card-header\">
  85.                                         <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">  Edition du cours ";
  86.         // line 21
  87.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'21$this->source); })()), "id", [], "any"falsefalsefalse21), "html"nulltrue);
  88.         yield "  </h4>
  89.                                   </div>
  90.                             ";
  91.         // line 23
  92.         yield Twig\Extension\CoreExtension::include($this->env$context"layout/partials/_form.html.twig", ["submitButtonText" => "Update course""returnRoute" => "admin_modules"]);
  93.         yield "
  94.                         </article>
  95.                     </div>
  96.     </div>
  97.     
  98. ";
  99.         
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  101.         
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103.         yield from [];
  104.     }
  105.     /**
  106.      * @codeCoverageIgnore
  107.      */
  108.     public function getTemplateName(): string
  109.     {
  110.         return "course/edit.html.twig";
  111.     }
  112.     /**
  113.      * @codeCoverageIgnore
  114.      */
  115.     public function isTraitable(): bool
  116.     {
  117.         return false;
  118.     }
  119.     /**
  120.      * @codeCoverageIgnore
  121.      */
  122.     public function getDebugInfo(): array
  123.     {
  124.         return array (  106 => 23,  101 => 21,  89 => 12,  85 => 11,  79 => 7,  66 => 6,  55 => 1,  53 => 3,  40 => 1,);
  125.     }
  126.     public function getSourceContext(): Source
  127.     {
  128.         return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
  129. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  130. {% block content %}
  131.   
  132.   <div class=\"row mt-4\">
  133.          <div class=\"col-2 \" >
  134.                         <div class=\"btn-group record_actions  m-2\">
  135.                             <a class=\"btn btn-info\" href=\"{{ path('admin_courses') }}\">
  136.                                 <i class=\"fa fa-list\"></i> {{ 'Back to the list'|trans({}, 'admin') }}
  137.                             </a>
  138.                         </div>
  139.                     </div>
  140.                                 <div class=\"col-10 jumbotron  mx-auto\">
  141.                     <div class=\"col-md-6 mx-auto\">
  142.                         <article class=\"text-center\">
  143.                             <br/>
  144.                            <div class=\"card-header\">
  145.                                         <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">  Edition du cours {{ course.id }}  </h4>
  146.                                   </div>
  147.                             {{include('layout/partials/_form.html.twig',{'submitButtonText':'Update course', 'returnRoute':'admin_modules'})}}
  148.                         </article>
  149.                     </div>
  150.     </div>
  151.     
  152. {% endblock %}
  153. ""course/edit.html.twig""/var/www/prod/current/templates/course/edit.html.twig");
  154.     }
  155. }