<?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;
/* abscence_sheet/edit.html.twig */
class __TwigTemplate_8bee1ce6952b1d90f6441c524af68cfc 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'],
'javascripts' => [$this, 'block_javascripts'],
];
}
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", "abscence_sheet/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", "abscence_sheet/edit.html.twig"));
// line 3
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["edit_form"]) || array_key_exists("edit_form", $context) ? $context["edit_form"] : (function () { throw new RuntimeError('Variable "edit_form" does not exist.', 3, $this->source); })()), ["bootstrap_4_layout.html.twig"], true);
// line 1
$this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "abscence_sheet/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 6
/**
* @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 7
yield "
<div class=\"row mt-4\">
\t\t
<div class=\"col-12 jumbotron mx-auto\">
<article class=\"text-center\">
<br/>
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Modifier evaluation ";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["abscence_sheet"]) || array_key_exists("abscence_sheet", $context) ? $context["abscence_sheet"] : (function () { throw new RuntimeError('Variable "abscence_sheet" does not exist.', 15, $this->source); })()), "id", [], "any", false, false, false, 15), "html", null, true);
yield " </h4>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"example-wrapper\">
\t\t\t\t\t\t\t\t\t<h1 class=\"center\">Edition fiche d'abscence N°
\t\t\t\t\t\t\t\t\t\t";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["abscence_sheet"]) || array_key_exists("abscence_sheet", $context) ? $context["abscence_sheet"] : (function () { throw new RuntimeError('Variable "abscence_sheet" does not exist.', 20, $this->source); })()), "id", [], "any", false, false, false, 20), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\tSequence
\t\t\t\t\t\t\t\t\t\t";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["abscence_sheet"]) || array_key_exists("abscence_sheet", $context) ? $context["abscence_sheet"] : (function () { throw new RuntimeError('Variable "abscence_sheet" does not exist.', 22, $this->source); })()), "sequence", [], "any", false, false, false, 22), "code", [], "any", false, false, false, 22), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\tCours
\t\t\t\t\t\t\t\t\t\t";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["abscence_sheet"]) || array_key_exists("abscence_sheet", $context) ? $context["abscence_sheet"] : (function () { throw new RuntimeError('Variable "abscence_sheet" does not exist.', 24, $this->source); })()), "classRoom", [], "any", false, false, false, 24), "name", [], "any", false, false, false, 24), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 29
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["edit_form"]) || array_key_exists("edit_form", $context) ? $context["edit_form"] : (function () { throw new RuntimeError('Variable "edit_form" does not exist.', 29, $this->source); })()), 'form_start');
yield "
\t\t\t\t\t\t\t\t\t\t\t";
// line 30
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["edit_form"]) || array_key_exists("edit_form", $context) ? $context["edit_form"] : (function () { throw new RuntimeError('Variable "edit_form" does not exist.', 30, $this->source); })()), 'widget');
yield "
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-10 mar-bot30\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 39
if (array_key_exists("students", $context)) {
// line 40
yield "
\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover table-sortable\" id=\"tab_logic\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <th style=\"width:10%;\" class=\"text-center\">Matricule</th>
<th style=\"width:30%;\" class=\"text-center\" >Nom et prénom</th>
<th style=\"width:20%;\" class=\"text-center\" >Heures d'abscence</th>
<th style=\"width:30%;\" class=\"text-center\" >Raison</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 54
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["students"]) || array_key_exists("students", $context) ? $context["students"] : (function () { throw new RuntimeError('Variable "students" does not exist.', 54, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["student"]) {
// line 55
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"hidden\" data-id=\"0\" id='addr0'>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 57), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["student"], "lastname", [], "any", false, false, false, 60), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["student"], "firstname", [], "any", false, false, false, 61), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"desc\">
<input type=\"number\" id=\"";
// line 65
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 65), "html", null, true);
yield "\" placeholder=\"0...100\" value=";
yield ((CoreExtension::getAttribute($this->env, $this->source, ($context["abscences"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 65), [], "array", true, true, false, 65)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["abscences"]) || array_key_exists("abscences", $context) ? $context["abscences"] : (function () { throw new RuntimeError('Variable "abscences" does not exist.', 65, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 65), [], "array", false, false, false, 65), "weight", [], "any", false, false, false, 65), "html", null, true)) : (0));
yield "
min=\"0\" max=\"100\" class=\"form-control value\" name=\"";
// line 66
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 66), "html", null, true);
yield "weight\"/>
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
<td data-name=\"desc\">
<input type=\"text\" placeholder=\"Raison\" class=\"form-control\" value=";
// line 71
yield ((CoreExtension::getAttribute($this->env, $this->source, ($context["abscences"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 71), [], "array", true, true, false, 71)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["abscences"]) || array_key_exists("abscences", $context) ? $context["abscences"] : (function () { throw new RuntimeError('Variable "abscences" does not exist.', 71, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 71), [], "array", false, false, false, 71), "reason", [], "any", false, false, false, 71), "html", null, true)) : ("RAS"));
yield " name=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["student"], "matricule", [], "any", false, false, false, 71), "html", null, true);
yield "raison\" />
</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['student'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 81
yield "
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"btn-group center record_actions\">
\t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-info\" href=\"";
// line 89
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscences_sheet_index");
yield "\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-list\"></i>
\t\t\t\t\t\t\t\t\t\t\t";
// line 91
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 "
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" type=\"submit\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-edit\"></i>
\t\t\t\t\t\t\t\t\t\t\t";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Update", [], "admin"), "html", null, true);
yield "</button>
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t</article>
</div>
\t\t\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 112
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 113
yield "\t \t ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
\t<script type=\"text/javascript\" src=\"";
// line 114
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.js"), "html", null, true);
yield "\"></script>
\t<script type=\"text/javascript\">
var idClassRoom, idSequence=\$(\"#abscence_sheet_sequence\").val(), startDate, endDate;
\$(\"#abscence_sheet_sequence\").change(function () {
\t\t\t\tidSequence = \$(this).val();
\t\t\t});
\t\t\t\$(\"#abscence_sheet_startDate\").change(function () {
\t\t\t\tstartDate = \$(this).val();
\t\t\t});
\t\t\t\$(\"#abscence_sheet_endDate\").change(function () {
\t\t\t\tendDate = \$(this).val();
\t\t\t});
\t\t\tvar abscencesJson = [],
\t\t\tpostData;
\t
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "abscence_sheet/edit.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 276 => 114, 271 => 113, 258 => 112, 233 => 97, 224 => 91, 219 => 89, 209 => 81, 202 => 76, 189 => 71, 181 => 66, 175 => 65, 168 => 61, 164 => 60, 158 => 57, 154 => 55, 150 => 54, 134 => 40, 132 => 39, 120 => 30, 116 => 29, 108 => 24, 103 => 22, 98 => 20, 90 => 15, 80 => 7, 67 => 6, 56 => 1, 54 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
{% form_theme edit_form 'bootstrap_4_layout.html.twig' %}
{% block content %}
<div class=\"row mt-4\">
\t\t
<div class=\"col-12 jumbotron mx-auto\">
<article class=\"text-center\">
<br/>
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Modifier evaluation {{ abscence_sheet.id }} </h4>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"example-wrapper\">
\t\t\t\t\t\t\t\t\t<h1 class=\"center\">Edition fiche d'abscence N°
\t\t\t\t\t\t\t\t\t\t{{abscence_sheet.id}}
\t\t\t\t\t\t\t\t\t\tSequence
\t\t\t\t\t\t\t\t\t\t{{abscence_sheet.sequence.code}}
\t\t\t\t\t\t\t\t\t\tCours
\t\t\t\t\t\t\t\t\t\t{{abscence_sheet.classRoom.name}}
\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\">
\t\t\t\t\t\t\t\t\t\t\t{{ form_start(edit_form) }}
\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(edit_form) }}
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-10 mar-bot30\">
\t\t\t\t\t\t\t\t\t\t\t{% if students is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover table-sortable\" id=\"tab_logic\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <th style=\"width:10%;\" class=\"text-center\">Matricule</th>
<th style=\"width:30%;\" class=\"text-center\" >Nom et prénom</th>
<th style=\"width:20%;\" class=\"text-center\" >Heures d'abscence</th>
<th style=\"width:30%;\" class=\"text-center\" >Raison</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for student in students %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"hidden\" data-id=\"0\" id='addr0'>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{student.matricule}}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{student.lastname}}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{student.firstname}}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"desc\">
<input type=\"number\" id=\"{{student.matricule}}\" placeholder=\"0...100\" value={{abscences[student.matricule] is defined ? abscences[student.matricule].weight : 0}}
min=\"0\" max=\"100\" class=\"form-control value\" name=\"{{student.matricule}}weight\"/>
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
<td data-name=\"desc\">
<input type=\"text\" placeholder=\"Raison\" class=\"form-control\" value={{abscences[student.matricule] is defined ? abscences[student.matricule].reason : \"RAS\"}} name=\"{{student.matricule}}raison\" />
</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"btn-group center record_actions\">
\t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-info\" href=\"{{ path('admin_abscences_sheet_index') }}\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-list\"></i>
\t\t\t\t\t\t\t\t\t\t\t{{ 'Back to the list'|trans({}, 'admin') }}
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" type=\"submit\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-edit\"></i>
\t\t\t\t\t\t\t\t\t\t\t{{ 'Update'|trans({}, 'admin') }}</button>
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t</article>
</div>
\t\t\t</div>
{% endblock %}
{% block javascripts %}
\t \t {{parent()}}
\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/jquery.js') }}\"></script>
\t<script type=\"text/javascript\">
var idClassRoom, idSequence=\$(\"#abscence_sheet_sequence\").val(), startDate, endDate;
\$(\"#abscence_sheet_sequence\").change(function () {
\t\t\t\tidSequence = \$(this).val();
\t\t\t});
\t\t\t\$(\"#abscence_sheet_startDate\").change(function () {
\t\t\t\tstartDate = \$(this).val();
\t\t\t});
\t\t\t\$(\"#abscence_sheet_endDate\").change(function () {
\t\t\t\tendDate = \$(this).val();
\t\t\t});
\t\t\tvar abscencesJson = [],
\t\t\tpostData;
\t
\t</script>
{% endblock javascripts %}
", "abscence_sheet/edit.html.twig", "/var/www/prod/liveedu/templates/abscence_sheet/edit.html.twig");
}
}