You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.7 KiB

<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* adminChaptersModal.twig */
class __TwigTemplate_db530ddcf6673624deec81ea04f186fecb181fd86f3ccee0c9062794492649dc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<!DOCTYPE html>
<html lang=\"fr\">
<head>
<title>Maths Educ</title>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">
</script>
<style>
@font-face {
font-family: 'MenuFont';
src: url('Media/mathEducFont.ttf') format('truetype');
}
* {
font-family: 'MenuFont';
}
</style>
</head>
<body>
<div class=\"modal fade\" id=\"modalUpdateChapters\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">modifier un Chapter</h5>
</div>
<form method=\"POST\" action=\"/admin/chapters/update\">
<div class=\"modal-body\">
<div class=\"form-group\">
<input type=\"hidden\" class=\"form-control\" id=\"updateId\" name=\"id\">
</div>
<div class=\"form-group\">
<label for=\"name\">Nom du chapitre :</label>
<input type=\"text\" class=\"form-control\" id=\"updateName\" name=\"name\">
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Fermer</button>
<button type=\"submit\" class=\"btn btn-primary\">Enregistrer</button>
</div>
</form>
</div>
</div>
</div>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js\"></script>
<script>
if (";
// line 51
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["chapter"] ?? null), "id", [], "any", false, false, false, 51), "html", null, true);
echo " != 0) {
window.onload = showModal();
function showModal() {
var modal = new bootstrap.Modal(document.getElementById('modalUpdateChapters'));
var id = document.getElementById('updateId');
var name = document.getElementById('updateName');
id.value = \"";
// line 60
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["chapter"] ?? null), "id", [], "any", false, false, false, 60), "html", null, true);
echo "\";
name.value = \"";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["chapter"] ?? null), "name", [], "any", false, false, false, 61), "html", null, true);
echo "\";
modal.show();
}
}
</script>
</body>
</html>
";
}
public function getTemplateName()
{
return "adminChaptersModal.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 105 => 61, 101 => 60, 89 => 51, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "adminChaptersModal.twig", "C:\\MAMP\\htdocs\\3.01-QCM_MuscuMaths\\Website\\templates\\adminChaptersModal.twig");
}
}