<?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;
/* admin/tranches.html.twig */
class __TwigTemplate_81c60a9dca2a775f66e79b7b0790794d202b6b505440cc090c5e583ec76a9d10 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_admin.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/tranches.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/tranches.html.twig"));
$this->parent = $this->loadTemplate("base_admin.html.twig", "admin/tranches.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo "
<!-- ============================================================== -->
<!-- Start Page Content here -->
<!-- ============================================================== -->
<div class=\"content-page\">
<div class=\"content\">
<!-- Start Content-->
<div class=\"container-fluid\">
<!-- start page title -->
<div class=\"row\">
<div class=\"col-12\">
<div class=\"page-title-box\">
<h4 class=\"page-title\">Gestion des tranches horaires</h4>
<div class=\"col-lg-12\">
<div class=\"card\">
<div class=\"card-body\">
<div class=\"dropdown float-right\">
</div>
";
// line 34
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "get", [0 => "success"], "method", false, false, false, 34)) {
// line 35
echo "
<div class=\"alert alert-success\" role=\"alert\">
La mise à jour des tranches horaires est confimée
</div>
<a href=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_jours_fermetures_new", ["lieu" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jours"]) || array_key_exists("jours", $context) ? $context["jours"] : (function () { throw new RuntimeError('Variable "jours" does not exist.', 40, $this->source); })()), "lieux", [], "any", false, false, false, 40), "id", [], "any", false, false, false, 40), "avocat" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jours"]) || array_key_exists("jours", $context) ? $context["jours"] : (function () { throw new RuntimeError('Variable "jours" does not exist.', 40, $this->source); })()), "avocats", [], "any", false, false, false, 40), "id", [], "any", false, false, false, 40)]), "html", null, true);
echo "\">< retour à la page précédente</a>
";
}
// line 42
echo "
<div class=\"table-responsive\">
<h3>Avocat : ";
// line 44
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jours"]) || array_key_exists("jours", $context) ? $context["jours"] : (function () { throw new RuntimeError('Variable "jours" does not exist.', 44, $this->source); })()), "avocats", [], "any", false, false, false, 44), "prenom", [], "any", false, false, false, 44), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jours"]) || array_key_exists("jours", $context) ? $context["jours"] : (function () { throw new RuntimeError('Variable "jours" does not exist.', 44, $this->source); })()), "avocats", [], "any", false, false, false, 44), "nom", [], "any", false, false, false, 44), "html", null, true);
echo "</h3>
<h3>Lieu : ";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jours"]) || array_key_exists("jours", $context) ? $context["jours"] : (function () { throw new RuntimeError('Variable "jours" does not exist.', 45, $this->source); })()), "lieux", [], "any", false, false, false, 45), "libelle", [], "any", false, false, false, 45), "html", null, true);
echo "</h3>
<h3>Date : ";
// line 46
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jours"]) || array_key_exists("jours", $context) ? $context["jours"] : (function () { throw new RuntimeError('Variable "jours" does not exist.', 46, $this->source); })()), "date", [], "any", false, false, false, 46), "d-m-Y"), "html", null, true);
echo "</h3>
<hr>
<form action=\"\" method=\"post\">
<input type=\"hidden\" name=\"id\" value=\"";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jours"]) || array_key_exists("jours", $context) ? $context["jours"] : (function () { throw new RuntimeError('Variable "jours" does not exist.', 49, $this->source); })()), "id", [], "any", false, false, false, 49), "html", null, true);
echo "\">
<div class=\"row\">
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tranches"]) || array_key_exists("tranches", $context) ? $context["tranches"] : (function () { throw new RuntimeError('Variable "tranches" does not exist.', 53, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
// line 54
echo " <div class=\"col-2\">
<h3 class=\"custom-control custom-switch\">
<input type=\"checkbox\" class=\"custom-control-input\" name=\"ouvert[]\" id=\"customSwitch";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "id", [], "any", false, false, false, 56), "html", null, true);
echo "\" ";
if (twig_get_attribute($this->env, $this->source, $context["res"], "ouvert", [], "any", false, false, false, 56)) {
echo "checked";
}
echo " value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "id", [], "any", false, false, false, 56), "html", null, true);
echo "\">
<label class=\"custom-control-label\" for=\"customSwitch";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "id", [], "any", false, false, false, 57), "html", null, true);
echo "\"></label>
";
// line 59
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "date", [], "any", false, false, false, 59), "H:i"), "html", null, true);
echo "</h3>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 64
echo " </div>
<input type=\"submit\" class=\"btn btn-success\" value=\"Enregistrer\">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end page title -->
<div class=\"row\">
</div>
<!-- end row -->
</div> <!-- end container-fluid -->
</div> <!-- end content -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "admin/tranches.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 175 => 64, 164 => 59, 159 => 57, 149 => 56, 145 => 54, 141 => 53, 134 => 49, 128 => 46, 124 => 45, 118 => 44, 114 => 42, 109 => 40, 102 => 35, 100 => 34, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base_admin.html.twig\" %}
{% block body %}
<!-- ============================================================== -->
<!-- Start Page Content here -->
<!-- ============================================================== -->
<div class=\"content-page\">
<div class=\"content\">
<!-- Start Content-->
<div class=\"container-fluid\">
<!-- start page title -->
<div class=\"row\">
<div class=\"col-12\">
<div class=\"page-title-box\">
<h4 class=\"page-title\">Gestion des tranches horaires</h4>
<div class=\"col-lg-12\">
<div class=\"card\">
<div class=\"card-body\">
<div class=\"dropdown float-right\">
</div>
{% if app.request.get('success') %}
<div class=\"alert alert-success\" role=\"alert\">
La mise à jour des tranches horaires est confimée
</div>
<a href=\"{{path('app_jours_fermetures_new',{'lieu':jours.lieux.id,'avocat':jours.avocats.id})}}\">< retour à la page précédente</a>
{% endif %}
<div class=\"table-responsive\">
<h3>Avocat : {{jours.avocats.prenom}} {{jours.avocats.nom}}</h3>
<h3>Lieu : {{jours.lieux.libelle}}</h3>
<h3>Date : {{jours.date|date('d-m-Y')}}</h3>
<hr>
<form action=\"\" method=\"post\">
<input type=\"hidden\" name=\"id\" value=\"{{jours.id}}\">
<div class=\"row\">
{% for res in tranches %}
<div class=\"col-2\">
<h3 class=\"custom-control custom-switch\">
<input type=\"checkbox\" class=\"custom-control-input\" name=\"ouvert[]\" id=\"customSwitch{{res.id}}\" {% if res.ouvert %}checked{% endif %} value=\"{{res.id}}\">
<label class=\"custom-control-label\" for=\"customSwitch{{res.id}}\"></label>
{{res.date|date('H:i')}}</h3>
</div>
{% endfor %}
</div>
<input type=\"submit\" class=\"btn btn-success\" value=\"Enregistrer\">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end page title -->
<div class=\"row\">
</div>
<!-- end row -->
</div> <!-- end container-fluid -->
</div> <!-- end content -->
{% endblock %}", "admin/tranches.html.twig", "/home/clients/8a26b627df8110e37de9005ae0268930/sites/templates/admin/tranches.html.twig");
}
}