var/cache/dev/twig/82/8268abca11b9b99094a3bc0f35e3d8da.php line 44

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. /* abscence_sheet/edit.html.twig */
  16. class __TwigTemplate_8bee1ce6952b1d90f6441c524af68cfc 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. 'javascripts' => [$this, 'block_javascripts'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "layout/backEndLayout.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "abscence_sheet/edit.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "abscence_sheet/edit.html.twig"));
  44. // line 3
  45. $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);
  46. // line 1
  47. $this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "abscence_sheet/edit.html.twig", 1);
  48. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51. }
  52. // line 6
  53. /**
  54. * @return iterable<null|scalar|\Stringable>
  55. */
  56. public function block_content(array $context, array $blocks = []): iterable
  57. {
  58. $macros = $this->macros;
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  63. // line 7
  64. yield "
  65. <div class=\"row mt-4\">
  66. \t\t
  67. <div class=\"col-12 jumbotron mx-auto\">
  68. <article class=\"text-center\">
  69. <br/>
  70. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  71. \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 ";
  72. // line 15
  73. 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);
  74. yield " </h4>
  75. \t\t\t\t\t\t\t\t\t</div>
  76. \t\t\t\t\t\t\t\t<div class=\"example-wrapper\">
  77. \t\t\t\t\t\t\t\t\t<h1 class=\"center\">Edition fiche d'abscence N°
  78. \t\t\t\t\t\t\t\t\t\t";
  79. // line 20
  80. 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);
  81. yield "
  82. \t\t\t\t\t\t\t\t\t\tSequence
  83. \t\t\t\t\t\t\t\t\t\t";
  84. // line 22
  85. 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);
  86. yield "
  87. \t\t\t\t\t\t\t\t\t\tCours
  88. \t\t\t\t\t\t\t\t\t\t";
  89. // line 24
  90. 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);
  91. yield "
  92. \t\t\t\t\t\t\t\t\t</h1>
  93. \t\t\t\t\t\t\t\t\t<div class=\"row\">
  94. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
  95. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\">
  96. \t\t\t\t\t\t\t\t\t\t\t";
  97. // line 29
  98. 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');
  99. yield "
  100. \t\t\t\t\t\t\t\t\t\t\t";
  101. // line 30
  102. 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');
  103. yield "
  104. \t\t\t\t\t\t\t\t\t\t\t
  105. \t\t\t\t\t\t\t\t\t\t</div>
  106. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
  107. \t\t\t\t\t\t\t\t\t</div>
  108. \t\t\t\t\t\t\t\t\t<div class=\"row\">
  109. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
  110. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-10 mar-bot30\">
  111. \t\t\t\t\t\t\t\t\t\t\t";
  112. // line 39
  113. if (array_key_exists("students", $context)) {
  114. // line 40
  115. yield "
  116. \t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover table-sortable\" id=\"tab_logic\">
  117. \t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  118. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  119. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <th style=\"width:10%;\" class=\"text-center\">Matricule</th>
  120. <th style=\"width:30%;\" class=\"text-center\" >Nom et prénom</th>
  121. <th style=\"width:20%;\" class=\"text-center\" >Heures d'abscence</th>
  122. <th style=\"width:30%;\" class=\"text-center\" >Raison</th>
  123. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  124. \t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  125. \t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  126. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  127. // line 54
  128. $context['_parent'] = $context;
  129. $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); })()));
  130. foreach ($context['_seq'] as $context["_key"] => $context["student"]) {
  131. // line 55
  132. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"hidden\" data-id=\"0\" id='addr0'>
  133. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
  134. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  135. // line 57
  136. 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);
  137. yield "
  138. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  139. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
  140. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  141. // line 60
  142. 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);
  143. yield "
  144. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  145. // line 61
  146. 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);
  147. yield "
  148. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  149. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"desc\">
  150. <input type=\"number\" id=\"";
  151. // line 65
  152. 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);
  153. yield "\" placeholder=\"0...100\" value=";
  154. 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));
  155. yield "
  156. min=\"0\" max=\"100\" class=\"form-control value\" name=\"";
  157. // line 66
  158. 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);
  159. yield "weight\"/>
  160. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  161. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  162. <td data-name=\"desc\">
  163. <input type=\"text\" placeholder=\"Raison\" class=\"form-control\" value=";
  164. // line 71
  165. 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"));
  166. yield " name=\"";
  167. 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);
  168. yield "raison\" />
  169. </td>
  170. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  171. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  172. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  173. }
  174. $_parent = $context['_parent'];
  175. unset($context['_seq'], $context['_key'], $context['student'], $context['_parent']);
  176. $context = array_intersect_key($context, $_parent) + $_parent;
  177. // line 76
  178. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  179. \t\t\t\t\t\t\t\t\t\t\t\t</table>
  180. \t\t\t\t\t\t\t\t\t\t\t";
  181. }
  182. // line 81
  183. yield "
  184. \t\t\t\t\t\t\t\t\t\t</div>
  185. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
  186. \t\t\t\t\t\t\t\t\t</div>
  187. \t\t\t\t\t\t\t\t\t<div class=\"btn-group center record_actions\">
  188. \t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-info\" href=\"";
  189. // line 89
  190. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscences_sheet_index");
  191. yield "\">
  192. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-list\"></i>
  193. \t\t\t\t\t\t\t\t\t\t\t";
  194. // line 91
  195. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to the list", [], "admin"), "html", null, true);
  196. yield "
  197. \t\t\t\t\t\t\t\t\t\t</a>
  198. \t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" type=\"submit\">
  199. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-edit\"></i>
  200. \t\t\t\t\t\t\t\t\t\t\t";
  201. // line 97
  202. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Update", [], "admin"), "html", null, true);
  203. yield "</button>
  204. \t\t\t\t\t\t\t\t\t\t
  205. \t\t\t\t\t\t\t\t\t\t
  206. \t\t\t\t\t\t\t\t\t</div>
  207. \t\t\t\t\t\t\t\t</div>
  208. \t\t\t\t\t\t\t
  209. \t\t\t\t\t\t</article>
  210. </div>
  211. \t\t\t</div>
  212. ";
  213. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  214. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  215. yield from [];
  216. }
  217. // line 112
  218. /**
  219. * @return iterable<null|scalar|\Stringable>
  220. */
  221. public function block_javascripts(array $context, array $blocks = []): iterable
  222. {
  223. $macros = $this->macros;
  224. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  225. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  226. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  227. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  228. // line 113
  229. yield "\t \t ";
  230. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  231. yield "
  232. \t<script type=\"text/javascript\" src=\"";
  233. // line 114
  234. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.js"), "html", null, true);
  235. yield "\"></script>
  236. \t<script type=\"text/javascript\">
  237. var idClassRoom, idSequence=\$(\"#abscence_sheet_sequence\").val(), startDate, endDate;
  238. \$(\"#abscence_sheet_sequence\").change(function () {
  239. \t\t\t\tidSequence = \$(this).val();
  240. \t\t\t});
  241. \t\t\t\$(\"#abscence_sheet_startDate\").change(function () {
  242. \t\t\t\tstartDate = \$(this).val();
  243. \t\t\t});
  244. \t\t\t\$(\"#abscence_sheet_endDate\").change(function () {
  245. \t\t\t\tendDate = \$(this).val();
  246. \t\t\t});
  247. \t\t\tvar abscencesJson = [],
  248. \t\t\tpostData;
  249. \t
  250. \t</script>
  251. ";
  252. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  253. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  254. yield from [];
  255. }
  256. /**
  257. * @codeCoverageIgnore
  258. */
  259. public function getTemplateName(): string
  260. {
  261. return "abscence_sheet/edit.html.twig";
  262. }
  263. /**
  264. * @codeCoverageIgnore
  265. */
  266. public function isTraitable(): bool
  267. {
  268. return false;
  269. }
  270. /**
  271. * @codeCoverageIgnore
  272. */
  273. public function getDebugInfo(): array
  274. {
  275. 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,);
  276. }
  277. public function getSourceContext(): Source
  278. {
  279. return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
  280. {% form_theme edit_form 'bootstrap_4_layout.html.twig' %}
  281. {% block content %}
  282. <div class=\"row mt-4\">
  283. \t\t
  284. <div class=\"col-12 jumbotron mx-auto\">
  285. <article class=\"text-center\">
  286. <br/>
  287. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  288. \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>
  289. \t\t\t\t\t\t\t\t\t</div>
  290. \t\t\t\t\t\t\t\t<div class=\"example-wrapper\">
  291. \t\t\t\t\t\t\t\t\t<h1 class=\"center\">Edition fiche d'abscence N°
  292. \t\t\t\t\t\t\t\t\t\t{{abscence_sheet.id}}
  293. \t\t\t\t\t\t\t\t\t\tSequence
  294. \t\t\t\t\t\t\t\t\t\t{{abscence_sheet.sequence.code}}
  295. \t\t\t\t\t\t\t\t\t\tCours
  296. \t\t\t\t\t\t\t\t\t\t{{abscence_sheet.classRoom.name}}
  297. \t\t\t\t\t\t\t\t\t</h1>
  298. \t\t\t\t\t\t\t\t\t<div class=\"row\">
  299. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
  300. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\">
  301. \t\t\t\t\t\t\t\t\t\t\t{{ form_start(edit_form) }}
  302. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(edit_form) }}
  303. \t\t\t\t\t\t\t\t\t\t\t
  304. \t\t\t\t\t\t\t\t\t\t</div>
  305. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-4 mar-bot30\"></div>
  306. \t\t\t\t\t\t\t\t\t</div>
  307. \t\t\t\t\t\t\t\t\t<div class=\"row\">
  308. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
  309. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-10 mar-bot30\">
  310. \t\t\t\t\t\t\t\t\t\t\t{% if students is defined %}
  311. \t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover table-sortable\" id=\"tab_logic\">
  312. \t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  313. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  314. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <th style=\"width:10%;\" class=\"text-center\">Matricule</th>
  315. <th style=\"width:30%;\" class=\"text-center\" >Nom et prénom</th>
  316. <th style=\"width:20%;\" class=\"text-center\" >Heures d'abscence</th>
  317. <th style=\"width:30%;\" class=\"text-center\" >Raison</th>
  318. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  319. \t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  320. \t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  321. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for student in students %}
  322. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"hidden\" data-id=\"0\" id='addr0'>
  323. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
  324. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{student.matricule}}
  325. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  326. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"name\">
  327. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{student.lastname}}
  328. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{student.firstname}}
  329. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  330. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-name=\"desc\">
  331. <input type=\"number\" id=\"{{student.matricule}}\" placeholder=\"0...100\" value={{abscences[student.matricule] is defined ? abscences[student.matricule].weight : 0}}
  332. min=\"0\" max=\"100\" class=\"form-control value\" name=\"{{student.matricule}}weight\"/>
  333. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  334. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  335. <td data-name=\"desc\">
  336. <input type=\"text\" placeholder=\"Raison\" class=\"form-control\" value={{abscences[student.matricule] is defined ? abscences[student.matricule].reason : \"RAS\"}} name=\"{{student.matricule}}raison\" />
  337. </td>
  338. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  339. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  340. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  341. \t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  342. \t\t\t\t\t\t\t\t\t\t\t\t</table>
  343. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  344. \t\t\t\t\t\t\t\t\t\t</div>
  345. \t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 mar-bot30\"></div>
  346. \t\t\t\t\t\t\t\t\t</div>
  347. \t\t\t\t\t\t\t\t\t<div class=\"btn-group center record_actions\">
  348. \t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-info\" href=\"{{ path('admin_abscences_sheet_index') }}\">
  349. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-list\"></i>
  350. \t\t\t\t\t\t\t\t\t\t\t{{ 'Back to the list'|trans({}, 'admin') }}
  351. \t\t\t\t\t\t\t\t\t\t</a>
  352. \t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" type=\"submit\">
  353. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-edit\"></i>
  354. \t\t\t\t\t\t\t\t\t\t\t{{ 'Update'|trans({}, 'admin') }}</button>
  355. \t\t\t\t\t\t\t\t\t\t
  356. \t\t\t\t\t\t\t\t\t\t
  357. \t\t\t\t\t\t\t\t\t</div>
  358. \t\t\t\t\t\t\t\t</div>
  359. \t\t\t\t\t\t\t
  360. \t\t\t\t\t\t</article>
  361. </div>
  362. \t\t\t</div>
  363. {% endblock %}
  364. {% block javascripts %}
  365. \t \t {{parent()}}
  366. \t<script type=\"text/javascript\" src=\"{{ asset('assets/js/jquery.js') }}\"></script>
  367. \t<script type=\"text/javascript\">
  368. var idClassRoom, idSequence=\$(\"#abscence_sheet_sequence\").val(), startDate, endDate;
  369. \$(\"#abscence_sheet_sequence\").change(function () {
  370. \t\t\t\tidSequence = \$(this).val();
  371. \t\t\t});
  372. \t\t\t\$(\"#abscence_sheet_startDate\").change(function () {
  373. \t\t\t\tstartDate = \$(this).val();
  374. \t\t\t});
  375. \t\t\t\$(\"#abscence_sheet_endDate\").change(function () {
  376. \t\t\t\tendDate = \$(this).val();
  377. \t\t\t});
  378. \t\t\tvar abscencesJson = [],
  379. \t\t\tpostData;
  380. \t
  381. \t</script>
  382. {% endblock javascripts %}
  383. ", "abscence_sheet/edit.html.twig", "/var/www/prod/liveedu/templates/abscence_sheet/edit.html.twig");
  384. }
  385. }