var/cache/dev/twig/a7/a77ee6e1fd3d6bfe370b0a2b8866db417966cdb6fc2c7e8ce76c5063b6679069.php line 40

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. /* comun/fichaje/index.html.twig */
  14. class __TwigTemplate_9f8660e8babcbaa7cb30f5a46f9a236aab0cf8d8607c3b180605cccb7843da35 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.             'title' => [$this'block_title'],
  24.             'titulo' => [$this'block_titulo'],
  25.             'tabla' => [$this'block_tabla'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "comun/fichaje/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""comun/fichaje/index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""comun/fichaje/index.html.twig"));
  40.         $this->parent $this->loadTemplate("comun/fichaje/base.html.twig""comun/fichaje/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.titulo"), "html"nulltrue);
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 6
  62.     public function block_titulo($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titulo"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titulo"));
  69.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.titulo"), "html"nulltrue);
  70.         echo " - ";
  71.         echo twig_escape_filter($this->env, (isset($context["empleada"]) || array_key_exists("empleada"$context) ? $context["empleada"] : (function () { throw new RuntimeError('Variable "empleada" does not exist.'6$this->source); })()), "html"nulltrue);
  72.         
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.     }
  77.     // line 8
  78.     public function block_tabla($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tabla"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tabla"));
  85.         // line 9
  86.         echo 
  87.   <a class=\"btn btn-primary\" href=\"";
  88.         // line 10
  89.         if ((isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'10$this->source); })())) {
  90.             echo " ";
  91.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_new_admin", ["empleada" => twig_get_attribute($this->env$this->source, (isset($context["empleada"]) || array_key_exists("empleada"$context) ? $context["empleada"] : (function () { throw new RuntimeError('Variable "empleada" does not exist.'10$this->source); })()), "id", [], "any"falsefalsefalse10)]), "html"nulltrue);
  92.             echo "
  93.        ";
  94.         } else {
  95.             // line 11
  96.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_new");
  97.         }
  98.         echo "\">";
  99.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.nuevo"), "html"nulltrue);
  100.         echo "</a>
  101.            ";
  102.         // line 13
  103.         if (twig_in_filter("ROLE_ADMIN"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.'13$this->source); })()), "user", [], "any"falsefalsefalse13), "roles", [], "any"falsefalsefalse13))) {
  104.             // line 14
  105.             echo "               <a class=\"btn btn-primary float-right\" href=\"";
  106.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_todos");
  107.             echo "\">";
  108.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.verTodos"), "html"nulltrue);
  109.             echo "</a>";
  110.         }
  111.         echo " <br><br>
  112.     <table class=\"table table-bordered datatables-basic\">
  113.         <thead>
  114.             <tr>
  115.                 <th>";
  116.         // line 19
  117.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.proyecto"), "html"nulltrue);
  118.         echo "</th>
  119.                 <th>";
  120.         // line 20
  121.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.tarea"), "html"nulltrue);
  122.         echo "</th>
  123.                 <th>";
  124.         // line 21
  125.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.cantidadHoras"), "html"nulltrue);
  126.         echo "</th>
  127.                 <th>";
  128.         // line 22
  129.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.fecha"), "html"nulltrue);
  130.         echo "</th>
  131.                 <th>";
  132.         // line 23
  133.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.observaciones"), "html"nulltrue);
  134.         echo "</th>
  135.                 <th></th>
  136.             </tr>
  137.         </thead>
  138.         <tbody>
  139.             ";
  140.         // line 28
  141.         $context['_parent'] = $context;
  142.         $context['_seq'] = twig_ensure_traversable((isset($context["fichajes"]) || array_key_exists("fichajes"$context) ? $context["fichajes"] : (function () { throw new RuntimeError('Variable "fichajes" does not exist.'28$this->source); })()));
  143.         foreach ($context['_seq'] as $context["_key"] => $context["fichaje"]) {
  144.             // line 29
  145.             echo "                <tr><td>";
  146.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["fichaje"], "proyecto", [], "any"falsefalsefalse29), "html"nulltrue);
  147.             echo "</td>
  148.                     <td>";
  149.             // line 30
  150.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["fichaje"], "tarea", [], "any"falsefalsefalse30), "html"nulltrue);
  151.             echo "</td>
  152.                     <td>";
  153.             // line 31
  154.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["fichaje"], "cantidadHorasFormat", [], "any"falsefalsefalse31), "html"nulltrue);
  155.             echo "</td>
  156.                     <td class=\"text-center\">";
  157.             // line 32
  158.             ((twig_get_attribute($this->env$this->source$context["fichaje"], "fecha", [], "any"falsefalsefalse32)) ? (print (twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["fichaje"], "fecha", [], "any"falsefalsefalse32), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("comun.fechaFormato")), "html"nulltrue))) : (print ("")));
  159.             echo "</td>
  160.                     <td>";
  161.             // line 33
  162.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["fichaje"], "observaciones", [], "any"falsefalsefalse33), "html"nulltrue);
  163.             echo "</td>
  164.                     <td>
  165.                         <a href=\"";
  166.             // line 35
  167.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_edit", ["id" => twig_get_attribute($this->env$this->source$context["fichaje"], "id", [], "any"falsefalsefalse35)]), "html"nulltrue);
  168.             echo "\" class=\"far  fa-fw fa-edit text-dark\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
  169.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("comun.editar"), "html"nulltrue);
  170.             echo "\"></a>
  171.                         <a href=\"";
  172.             // line 36
  173.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_delete", ["id" => twig_get_attribute($this->env$this->source$context["fichaje"], "id", [], "any"falsefalsefalse36)]), "html"nulltrue);
  174.             echo "\" class=\"far  fa-fw fa-trash-alt text-dark\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
  175.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("comun.eliminar"), "html"nulltrue);
  176.             echo "\"></a>
  177.                     </td>
  178.                 </tr>
  179.             ";
  180.         }
  181.         $_parent $context['_parent'];
  182.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fichaje'], $context['_parent'], $context['loop']);
  183.         $context array_intersect_key($context$_parent) + $_parent;
  184.         // line 40
  185.         echo "        </tbody>
  186.     </table>
  187.     <h5>";
  188.         // line 43
  189.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.tiempoTrabajado"), "html"nulltrue);
  190.         echo ": ";
  191.         echo twig_escape_filter($this->env, (isset($context["tiempoTrabajado"]) || array_key_exists("tiempoTrabajado"$context) ? $context["tiempoTrabajado"] : (function () { throw new RuntimeError('Variable "tiempoTrabajado" does not exist.'43$this->source); })()), "html"nulltrue);
  192.         echo "</h5>                 
  193.     <br><br>
  194.     <a class=\"btn btn-primary\" href=\"";
  195.         // line 45
  196.         if ((isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'45$this->source); })())) {
  197.             echo " ";
  198.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_new_admin", ["empleada" => twig_get_attribute($this->env$this->source, (isset($context["empleada"]) || array_key_exists("empleada"$context) ? $context["empleada"] : (function () { throw new RuntimeError('Variable "empleada" does not exist.'45$this->source); })()), "id", [], "any"falsefalsefalse45)]), "html"nulltrue);
  199.             echo "
  200.        ";
  201.         } else {
  202.             // line 46
  203.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_new");
  204.         }
  205.         echo "\">";
  206.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.nuevo"), "html"nulltrue);
  207.         echo "</a>
  208.            ";
  209.         // line 48
  210.         if (twig_in_filter("ROLE_ADMIN"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.'48$this->source); })()), "user", [], "any"falsefalsefalse48), "roles", [], "any"falsefalsefalse48))) {
  211.             // line 49
  212.             echo "               <a class=\"btn btn-primary float-right\" href=\"";
  213.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_comun_fichaje_todos");
  214.             echo "\">";
  215.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fichaje.verTodos"), "html"nulltrue);
  216.             echo "</a>";
  217.         }
  218.         // line 50
  219.         echo "
  220.                ";
  221.         
  222.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  223.         
  224.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  225.     }
  226.     public function getTemplateName()
  227.     {
  228.         return "comun/fichaje/index.html.twig";
  229.     }
  230.     public function isTraitable()
  231.     {
  232.         return false;
  233.     }
  234.     public function getDebugInfo()
  235.     {
  236.         return array (  247 => 50,  240 => 49,  238 => 48,  230 => 46,  223 => 45,  216 => 43,  211 => 40,  199 => 36,  193 => 35,  188 => 33,  184 => 32,  180 => 31,  176 => 30,  171 => 29,  167 => 28,  159 => 23,  155 => 22,  151 => 21,  147 => 20,  143 => 19,  130 => 14,  128 => 13,  120 => 11,  113 => 10,  110 => 9,  100 => 8,  79 => 6,  60 => 3,  37 => 1,);
  237.     }
  238.     public function getSourceContext()
  239.     {
  240.         return new Source("{% extends 'comun/fichaje/base.html.twig' %}
  241. {% block title %}{{ 'fichaje.titulo'|trans }}{% endblock %}
  242. {%block titulo%}{{'fichaje.titulo'|trans}} - {{ empleada }}{% endblock %}
  243. {% block tabla %}
  244.  
  245.   <a class=\"btn btn-primary\" href=\"{% if admin %} {{  path('app_comun_fichaje_new_admin', {'empleada': empleada.id}) }}
  246.        {% else %}{{  path('app_comun_fichaje_new') }}{% endif %}\">{{ 'fichaje.nuevo'|trans }}</a>
  247.            {% if \"ROLE_ADMIN\" in app.user.roles %}
  248.                <a class=\"btn btn-primary float-right\" href=\"{{ path('app_comun_fichaje_todos') }}\">{{ 'fichaje.verTodos'|trans }}</a>{% endif %} <br><br>
  249.     <table class=\"table table-bordered datatables-basic\">
  250.         <thead>
  251.             <tr>
  252.                 <th>{{ 'fichaje.proyecto'|trans }}</th>
  253.                 <th>{{ 'fichaje.tarea'|trans }}</th>
  254.                 <th>{{ 'fichaje.cantidadHoras'|trans }}</th>
  255.                 <th>{{ 'fichaje.fecha'|trans }}</th>
  256.                 <th>{{ 'fichaje.observaciones'|trans }}</th>
  257.                 <th></th>
  258.             </tr>
  259.         </thead>
  260.         <tbody>
  261.             {% for fichaje in fichajes %}
  262.                 <tr><td>{{ fichaje.proyecto }}</td>
  263.                     <td>{{ fichaje.tarea }}</td>
  264.                     <td>{{ fichaje.cantidadHorasFormat }}</td>
  265.                     <td class=\"text-center\">{{ fichaje.fecha ? fichaje.fecha|date('comun.fechaFormato'|trans) : '' }}</td>
  266.                     <td>{{ fichaje.observaciones }}</td>
  267.                     <td>
  268.                         <a href=\"{{  path('app_comun_fichaje_edit', {'id': fichaje.id}) }}\" class=\"far  fa-fw fa-edit text-dark\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"{{ 'comun.editar'|trans }}\"></a>
  269.                         <a href=\"{{  path('app_comun_fichaje_delete', {'id': fichaje.id}) }}\" class=\"far  fa-fw fa-trash-alt text-dark\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"{{ 'comun.eliminar'|trans }}\"></a>
  270.                     </td>
  271.                 </tr>
  272.             {% endfor %}
  273.         </tbody>
  274.     </table>
  275.     <h5>{{ 'fichaje.tiempoTrabajado'|trans }}: {{ tiempoTrabajado }}</h5>                 
  276.     <br><br>
  277.     <a class=\"btn btn-primary\" href=\"{% if admin %} {{  path('app_comun_fichaje_new_admin', {'empleada': empleada.id}) }}
  278.        {% else %}{{  path('app_comun_fichaje_new') }}{% endif %}\">{{ 'fichaje.nuevo'|trans }}</a>
  279.            {% if \"ROLE_ADMIN\" in app.user.roles %}
  280.                <a class=\"btn btn-primary float-right\" href=\"{{ path('app_comun_fichaje_todos') }}\">{{ 'fichaje.verTodos'|trans }}</a>{% endif %}
  281.                {% endblock %}
  282. ""comun/fichaje/index.html.twig""/var/www/vhosts/aplicaciones.debamatika.com/daiteke.aplicaciones.debamatika.com/templates/comun/fichaje/index.html.twig");
  283.     }
  284. }