<?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/index.html.twig */
class __TwigTemplate_9da9deaf6f37448d0839866b9a72c188 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", "abscence_sheet/index.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/index.html.twig"));
// line 3
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 3, $this->source); })()), ["bootstrap_4_layout.html.twig"], true);
// line 1
$this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "abscence_sheet/index.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 " <div class=\"row mt-4\">
<div class=\"col-1\">
<a class=\"btn btn-info\" href=\"";
// line 8
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscence_sheet_new");
yield "\">
<i class=\"fa fa-plus\"></i>
</a>
</div>
<div class=\"col-11 jumbotron\" >
\t\t\t\t";
// line 14
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 14, $this->source); })()), 'form_start');
yield "
\t\t\t\t<div class=\"form-row row\">
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t";
// line 17
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 17, $this->source); })()), "room", [], "any", false, false, false, 17), 'row');
yield "
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t";
// line 20
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 20, $this->source); })()), "sequence", [], "any", false, false, false, 20), 'row');
yield "
\t\t\t\t\t</div>
<div class=\"col-md-3\">
\t\t\t\t\t\t";
// line 23
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 23, $this->source); })()), "quater", [], "any", false, false, false, 23), 'row');
yield "
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"submit\">
\t\t\t\t\t\t\t\t\t<b>Rechercher</b>
\t\t\t\t\t\t</button>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
// line 32
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 32, $this->source); })()), 'form_end');
yield "
\t\t\t </div>
<table class=\"table\">
<thead>
<tr>
<th>Id</th>
<th>Session</th>
<th>StartDate</th>
<th>EndDate</th>
<th>Classe</th>
<th>actions</th>
</tr>
</thead>
<tbody>
";
// line 47
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 47, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["abscence_sheet"]) {
// line 48
yield " <tr>
<td>";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 49), "html", null, true);
yield "</td>
<td>";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "sequence", [], "any", false, false, false, 50), "code", [], "any", false, false, false, 50), "html", null, true);
yield "</td>
<td>";
// line 51
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "startDate", [], "any", false, false, false, 51)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "startDate", [], "any", false, false, false, 51), "Y-m-d"), "html", null, true)) : (""));
yield "</td>
<td>";
// line 52
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "endDate", [], "any", false, false, false, 52)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "endDate", [], "any", false, false, false, 52), "Y-m-d"), "html", null, true)) : (""));
yield "</td>
<td>";
// line 53
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "classRoom", [], "any", false, false, false, 53), "name", [], "any", false, false, false, 53), "html", null, true);
yield "</td>
<td>
<a class=\"btn btn-outline-info \" href=\"";
// line 55
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscence_sheet_pdf", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 55)]), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-cloud-download\">
\t\t\t\t\t\t\t\t\t\t\t\t</i>
\t\t\t\t\t\t\t\t\t\t</a>
<a class=\"btn btn-outline-warning \" href=\"";
// line 59
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscence_sheet_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 59)]), "html", null, true);
yield "\"><i class=\"fa fa-edit\">
\t\t\t\t\t\t\t\t\t\t\t</i>
</a>
<a class=\"btn btn-outline-danger\" href=\"#\" onclick= \"event.preventDefault() ; confirm('Are you sure ?') && document.getElementById('js-abscence-sheet-form-";
// line 62
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 62), "html", null, true);
yield "').submit();\"> <i class=\"fa fa-trash\"></i> </a>
\t\t\t\t\t\t\t\t\t\t<form id=\"js-abscence-sheet-form-";
// line 63
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 63), "html", null, true);
yield "\" action=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscences_sheet_delete", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 63)]), "html", null, true);
yield "\" method=\"post\" style=\"display: none;\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"csrf_token\" value=\"";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(("abscence_sheet_deletion" . CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 64))), "html", null, true);
yield "\" id=\"\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_method\" value=\"DELETE\">
\t\t\t\t\t\t\t\t\t\t</form>
</td>
</tr>
";
$context['_iterated'] = true;
}
// line 70
if (!$context['_iterated']) {
// line 71
yield " <tr>
<td colspan=\"4\">no records found</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['abscence_sheet'], $context['_parent'], $context['_iterated']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
yield " </tbody>
</table>
<div class=\"navigation text-center\">
\t\t\t\t\t";
// line 78
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 78, $this->source); })()));
yield "
\t</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "abscence_sheet/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 219 => 78, 214 => 75, 205 => 71, 203 => 70, 192 => 64, 186 => 63, 182 => 62, 176 => 59, 169 => 55, 164 => 53, 160 => 52, 156 => 51, 152 => 50, 148 => 49, 145 => 48, 140 => 47, 122 => 32, 110 => 23, 104 => 20, 98 => 17, 92 => 14, 83 => 8, 79 => 6, 66 => 5, 55 => 1, 53 => 3, 40 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layout/backEndLayout.html.twig' %}
{% form_theme searchForm 'bootstrap_4_layout.html.twig' %}
{% block content %}
<div class=\"row mt-4\">
<div class=\"col-1\">
<a class=\"btn btn-info\" href=\"{{ path('admin_abscence_sheet_new') }}\">
<i class=\"fa fa-plus\"></i>
</a>
</div>
<div class=\"col-11 jumbotron\" >
\t\t\t\t{{form_start(searchForm)}}
\t\t\t\t<div class=\"form-row row\">
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t{{form_row(searchForm.room)}}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t{{form_row(searchForm.sequence)}}
\t\t\t\t\t</div>
<div class=\"col-md-3\">
\t\t\t\t\t\t{{form_row(searchForm.quater)}}
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"submit\">
\t\t\t\t\t\t\t\t\t<b>Rechercher</b>
\t\t\t\t\t\t</button>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t{{form_end(searchForm)}}
\t\t\t </div>
<table class=\"table\">
<thead>
<tr>
<th>Id</th>
<th>Session</th>
<th>StartDate</th>
<th>EndDate</th>
<th>Classe</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for abscence_sheet in pagination %}
<tr>
<td>{{ abscence_sheet.id }}</td>
<td>{{ abscence_sheet.sequence.code }}</td>
<td>{{ abscence_sheet.startDate ? abscence_sheet.startDate|date('Y-m-d') : '' }}</td>
<td>{{ abscence_sheet.endDate ? abscence_sheet.endDate|date('Y-m-d') : '' }}</td>
<td>{{ abscence_sheet.classRoom.name }}</td>
<td>
<a class=\"btn btn-outline-info \" href=\"{{ path('admin_abscence_sheet_pdf', {id: abscence_sheet.id}) }}\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-cloud-download\">
\t\t\t\t\t\t\t\t\t\t\t\t</i>
\t\t\t\t\t\t\t\t\t\t</a>
<a class=\"btn btn-outline-warning \" href=\"{{ path('admin_abscence_sheet_edit', {'id': abscence_sheet.id}) }}\"><i class=\"fa fa-edit\">
\t\t\t\t\t\t\t\t\t\t\t</i>
</a>
<a class=\"btn btn-outline-danger\" href=\"#\" onclick= \"event.preventDefault() ; confirm('Are you sure ?') && document.getElementById('js-abscence-sheet-form-{{abscence_sheet.id}}').submit();\"> <i class=\"fa fa-trash\"></i> </a>
\t\t\t\t\t\t\t\t\t\t<form id=\"js-abscence-sheet-form-{{abscence_sheet.id}}\" action=\"{{path('admin_abscences_sheet_delete', {id: abscence_sheet.id})}}\" method=\"post\" style=\"display: none;\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"csrf_token\" value=\"{{ csrf_token('abscence_sheet_deletion' ~ abscence_sheet.id ) }}\" id=\"\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_method\" value=\"DELETE\">
\t\t\t\t\t\t\t\t\t\t</form>
</td>
</tr>
{% else %}
<tr>
<td colspan=\"4\">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class=\"navigation text-center\">
\t\t\t\t\t{{ knp_pagination_render(pagination) }}
\t</div>
</div>
{% endblock %}
", "abscence_sheet/index.html.twig", "/var/www/prod/liveedu/templates/abscence_sheet/index.html.twig");
}
}