<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* classroom/edit.html.twig */
class __TwigTemplate_288bd7bf828de24a9f1b66e0670c0567 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/backEndLayout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "classroom/edit.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "classroom/edit.html.twig"));
// line 3
$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);
// line 1
$this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "classroom/edit.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
yield " <h1 class=\"center\">
Edition Salle de classe
</h1>
<div class=\"row mt-4\">
<div class=\"col-2 \">
<div class=\"btn-group record_actions m-2\">
<a class=\"btn btn-info\" href=\"";
// line 13
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms");
yield "\">
<i class=\"fa fa-list\"></i>
";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to the list", [], "admin"), "html", null, true);
yield "
</a>
</div>
</div>
<div class=\"col-10 jumbotron mx-auto\">
<div class=\"col-md-7 mx-auto\">
<article class=\"text-center\">
<br/>
<div class=\"card-header\">
<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
Edit room #
";
// line 27
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", false, false, false, 27), "html", null, true);
yield "
</h4>
</div>
";
// line 31
yield Twig\Extension\CoreExtension::include($this->env, $context, "layout/partials/_form.html.twig", ["submitButtonText" => "Update classroom", "returnRoute" => "admin_classrooms"]);
yield "
</article>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "classroom/edit.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 115 => 31, 108 => 27, 93 => 15, 88 => 13, 79 => 6, 66 => 5, 55 => 1, 53 => 3, 40 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
{% form_theme form 'bootstrap_4_layout.html.twig' %}
{% block content %}
<h1 class=\"center\">
Edition Salle de classe
</h1>
<div class=\"row mt-4\">
<div class=\"col-2 \">
<div class=\"btn-group record_actions m-2\">
<a class=\"btn btn-info\" href=\"{{ path('admin_classrooms') }}\">
<i class=\"fa fa-list\"></i>
{{ 'Back to the list'|trans({}, 'admin') }}
</a>
</div>
</div>
<div class=\"col-10 jumbotron mx-auto\">
<div class=\"col-md-7 mx-auto\">
<article class=\"text-center\">
<br/>
<div class=\"card-header\">
<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
Edit room #
{{ room.id }}
</h4>
</div>
{{ include('layout/partials/_form.html.twig',{'submitButtonText':'Update classroom', 'returnRoute':'admin_classrooms'}) }}
</article>
</div>
</div>
</div>
{% endblock %}
", "classroom/edit.html.twig", "/var/www/prod/current/templates/classroom/edit.html.twig");
}
}