var/cache/dev/twig/fb/fbb7be914abea34dc73124ea9ead9a9b62e0c0311ed84370988dbcc5bb82cf48.php line 58

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* admin/tranches.html.twig */
  14. class __TwigTemplate_81c60a9dca2a775f66e79b7b0790794d202b6b505440cc090c5e583ec76a9d10 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base_admin.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/tranches.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/tranches.html.twig"));
  38.         $this->parent $this->loadTemplate("base_admin.html.twig""admin/tranches.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "
  55. <!-- ============================================================== -->
  56.             <!-- Start Page Content here -->
  57.             <!-- ============================================================== -->
  58.             <div class=\"content-page\">
  59.                 <div class=\"content\">
  60.                     
  61.                     <!-- Start Content-->
  62.                     <div class=\"container-fluid\">
  63.                         
  64.                         <!-- start page title -->
  65.                         <div class=\"row\">
  66.                             <div class=\"col-12\">
  67.                                 <div class=\"page-title-box\">
  68.     
  69.                                     <h4 class=\"page-title\">Gestion des tranches horaires</h4>
  70.                                     <div class=\"col-lg-12\">
  71.                                         <div class=\"card\">
  72.                                             <div class=\"card-body\">
  73.                                                 <div class=\"dropdown float-right\">
  74.                                                   
  75.                                                 </div>
  76.                                             ";
  77.         // line 34
  78.         if (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse34), "get", [=> "success"], "method"falsefalsefalse34)) {
  79.             // line 35
  80.             echo "
  81.                                                 <div class=\"alert alert-success\" role=\"alert\">
  82.                                                     La mise à jour des tranches horaires est confimée
  83.                                                 </div>
  84.                                                 <a href=\"";
  85.             // line 40
  86.             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->sourcetwig_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"falsefalsefalse40), "id", [], "any"falsefalsefalse40), "avocat" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse40), "id", [], "any"falsefalsefalse40)]), "html"nulltrue);
  87.             echo "\">< retour à la page précédente</a>
  88.                                             ";
  89.         }
  90.         // line 42
  91.         echo "
  92.                                                 <div class=\"table-responsive\">
  93.                                                <h3>Avocat : ";
  94.         // line 44
  95.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse44), "prenom", [], "any"falsefalsefalse44), "html"nulltrue);
  96.         echo " ";
  97.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse44), "nom", [], "any"falsefalsefalse44), "html"nulltrue);
  98.         echo "</h3>
  99.                                                <h3>Lieu : ";
  100.         // line 45
  101.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse45), "libelle", [], "any"falsefalsefalse45), "html"nulltrue);
  102.         echo "</h3>
  103.                                                <h3>Date : ";
  104.         // line 46
  105.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse46), "d-m-Y"), "html"nulltrue);
  106.         echo "</h3>
  107.                                                <hr>
  108.                                                <form action=\"\" method=\"post\">
  109.                                                <input type=\"hidden\" name=\"id\" value=\"";
  110.         // line 49
  111.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse49), "html"nulltrue);
  112.         echo "\">
  113.                                                <div class=\"row\">
  114.                                                
  115.                                                ";
  116.         // line 53
  117.         $context['_parent'] = $context;
  118.         $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); })()));
  119.         foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
  120.             // line 54
  121.             echo "                                               <div class=\"col-2\">
  122.                                                     <h3 class=\"custom-control custom-switch\">
  123.                                                       <input type=\"checkbox\" class=\"custom-control-input\" name=\"ouvert[]\" id=\"customSwitch";
  124.             // line 56
  125.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "id", [], "any"falsefalsefalse56), "html"nulltrue);
  126.             echo "\" ";
  127.             if (twig_get_attribute($this->env$this->source$context["res"], "ouvert", [], "any"falsefalsefalse56)) {
  128.                 echo "checked";
  129.             }
  130.             echo " value=\"";
  131.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "id", [], "any"falsefalsefalse56), "html"nulltrue);
  132.             echo "\">
  133.   <label class=\"custom-control-label\" for=\"customSwitch";
  134.             // line 57
  135.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "id", [], "any"falsefalsefalse57), "html"nulltrue);
  136.             echo "\"></label>
  137.                                                     ";
  138.             // line 59
  139.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["res"], "date", [], "any"falsefalsefalse59), "H:i"), "html"nulltrue);
  140.             echo "</h3>
  141.                                                     </div>
  142.                                                ";
  143.         }
  144.         $_parent $context['_parent'];
  145.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
  146.         $context array_intersect_key($context$_parent) + $_parent;
  147.         // line 64
  148.         echo "                                               </div>
  149.                                                <input type=\"submit\" class=\"btn btn-success\" value=\"Enregistrer\">
  150.                                                </form>
  151.                                                  
  152.  
  153.    
  154.   </div>
  155.                                </div>
  156.                                         </div>
  157.                                     </div>
  158.                                 </div>
  159.                             </div>
  160.                         </div>     
  161.                         <!-- end page title --> 
  162.                         <div class=\"row\">
  163.         
  164.         
  165.                         </div>
  166.                         <!-- end row -->
  167.         
  168.         
  169.                         
  170.                     </div> <!-- end container-fluid -->
  171.                 </div> <!-- end content -->
  172.                 
  173. ";
  174.         
  175.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  176.         
  177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  178.     }
  179.     public function getTemplateName()
  180.     {
  181.         return "admin/tranches.html.twig";
  182.     }
  183.     public function isTraitable()
  184.     {
  185.         return false;
  186.     }
  187.     public function getDebugInfo()
  188.     {
  189.         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,);
  190.     }
  191.     public function getSourceContext()
  192.     {
  193.         return new Source("{% extends \"base_admin.html.twig\" %}
  194. {% block body %}
  195. <!-- ============================================================== -->
  196.             <!-- Start Page Content here -->
  197.             <!-- ============================================================== -->
  198.             <div class=\"content-page\">
  199.                 <div class=\"content\">
  200.                     
  201.                     <!-- Start Content-->
  202.                     <div class=\"container-fluid\">
  203.                         
  204.                         <!-- start page title -->
  205.                         <div class=\"row\">
  206.                             <div class=\"col-12\">
  207.                                 <div class=\"page-title-box\">
  208.     
  209.                                     <h4 class=\"page-title\">Gestion des tranches horaires</h4>
  210.                                     <div class=\"col-lg-12\">
  211.                                         <div class=\"card\">
  212.                                             <div class=\"card-body\">
  213.                                                 <div class=\"dropdown float-right\">
  214.                                                   
  215.                                                 </div>
  216.                                             {% if app.request.get('success') %}
  217.                                                 <div class=\"alert alert-success\" role=\"alert\">
  218.                                                     La mise à jour des tranches horaires est confimée
  219.                                                 </div>
  220.                                                 <a href=\"{{path('app_jours_fermetures_new',{'lieu':jours.lieux.id,'avocat':jours.avocats.id})}}\">< retour à la page précédente</a>
  221.                                             {% endif %}
  222.                                                 <div class=\"table-responsive\">
  223.                                                <h3>Avocat : {{jours.avocats.prenom}} {{jours.avocats.nom}}</h3>
  224.                                                <h3>Lieu : {{jours.lieux.libelle}}</h3>
  225.                                                <h3>Date : {{jours.date|date('d-m-Y')}}</h3>
  226.                                                <hr>
  227.                                                <form action=\"\" method=\"post\">
  228.                                                <input type=\"hidden\" name=\"id\" value=\"{{jours.id}}\">
  229.                                                <div class=\"row\">
  230.                                                
  231.                                                {% for res in tranches %}
  232.                                                <div class=\"col-2\">
  233.                                                     <h3 class=\"custom-control custom-switch\">
  234.                                                       <input type=\"checkbox\" class=\"custom-control-input\" name=\"ouvert[]\" id=\"customSwitch{{res.id}}\" {% if res.ouvert %}checked{% endif %} value=\"{{res.id}}\">
  235.   <label class=\"custom-control-label\" for=\"customSwitch{{res.id}}\"></label>
  236.                                                     {{res.date|date('H:i')}}</h3>
  237.                                                     </div>
  238.                                                {% endfor %}
  239.                                                </div>
  240.                                                <input type=\"submit\" class=\"btn btn-success\" value=\"Enregistrer\">
  241.                                                </form>
  242.                                                  
  243.  
  244.    
  245.   </div>
  246.                                </div>
  247.                                         </div>
  248.                                     </div>
  249.                                 </div>
  250.                             </div>
  251.                         </div>     
  252.                         <!-- end page title --> 
  253.                         <div class=\"row\">
  254.         
  255.         
  256.                         </div>
  257.                         <!-- end row -->
  258.         
  259.         
  260.                         
  261.                     </div> <!-- end container-fluid -->
  262.                 </div> <!-- end content -->
  263.                 
  264. {% endblock %}""admin/tranches.html.twig""/home/clients/8a26b627df8110e37de9005ae0268930/sites/templates/admin/tranches.html.twig");
  265.     }
  266. }