var/cache/dev/twig/cd/cdaf3e6151a78b2c9f46f6f63c808c14.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_0482e1da4f742d8a1065af8300c7ea2b 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($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 6
  52. /**
  53. * @return iterable<null|scalar|\Stringable>
  54. */
  55. public function block_content(array $context, array $blocks = []): iterable
  56. {
  57. $macros = $this->macros;
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  62. // line 7
  63. yield "
  64. <div class=\"row mt-4\">
  65. <div class=\"col-2 \" >
  66. <div class=\"btn-group record_actions m-2\">
  67. <a class=\"btn btn-info\" href=\"";
  68. // line 11
  69. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses");
  70. yield "\">
  71. <i class=\"fa fa-list\"></i> ";
  72. // line 12
  73. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to the list", [], "admin"), "html", null, true);
  74. yield "
  75. </a>
  76. </div>
  77. </div>
  78. <div class=\"col-10 jumbotron mx-auto\">
  79. <div class=\"col-md-6 mx-auto\">
  80. <article class=\"text-center\">
  81. <br/>
  82. <div class=\"card-header\">
  83. <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Edition du cours ";
  84. // line 21
  85. 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", false, false, false, 21), "html", null, true);
  86. yield " </h4>
  87. </div>
  88. ";
  89. // line 23
  90. yield Twig\Extension\CoreExtension::include($this->env, $context, "layout/partials/_form.html.twig", ["submitButtonText" => "Update course", "returnRoute" => "admin_modules"]);
  91. yield "
  92. </article>
  93. </div>
  94. </div>
  95. ";
  96. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  97. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98. yield from [];
  99. }
  100. /**
  101. * @codeCoverageIgnore
  102. */
  103. public function getTemplateName(): string
  104. {
  105. return "course/edit.html.twig";
  106. }
  107. /**
  108. * @codeCoverageIgnore
  109. */
  110. public function isTraitable(): bool
  111. {
  112. return false;
  113. }
  114. /**
  115. * @codeCoverageIgnore
  116. */
  117. public function getDebugInfo(): array
  118. {
  119. return array ( 106 => 23, 101 => 21, 89 => 12, 85 => 11, 79 => 7, 66 => 6, 55 => 1, 53 => 3, 40 => 1,);
  120. }
  121. public function getSourceContext(): Source
  122. {
  123. return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
  124. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  125. {% block content %}
  126. <div class=\"row mt-4\">
  127. <div class=\"col-2 \" >
  128. <div class=\"btn-group record_actions m-2\">
  129. <a class=\"btn btn-info\" href=\"{{ path('admin_courses') }}\">
  130. <i class=\"fa fa-list\"></i> {{ 'Back to the list'|trans({}, 'admin') }}
  131. </a>
  132. </div>
  133. </div>
  134. <div class=\"col-10 jumbotron mx-auto\">
  135. <div class=\"col-md-6 mx-auto\">
  136. <article class=\"text-center\">
  137. <br/>
  138. <div class=\"card-header\">
  139. <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Edition du cours {{ course.id }} </h4>
  140. </div>
  141. {{include('layout/partials/_form.html.twig',{'submitButtonText':'Update course', 'returnRoute':'admin_modules'})}}
  142. </article>
  143. </div>
  144. </div>
  145. {% endblock %}
  146. ", "course/edit.html.twig", "/var/www/prod/liveedu/templates/course/edit.html.twig");
  147. }
  148. }