templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.         <meta name="description" content="">
  8.         <meta name="author" content="">
  9.         <title>{% block title %}Welcome!{% endblock %}</title>
  10.         {% block stylesheets %}
  11.             <link href="{{ asset('template/css/classic.css') }}" rel="stylesheet">
  12.             <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ"
  13.                   crossorigin="anonymous">
  14.             <link href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.bootstrap4.min.css" rel="stylesheet">
  15.         {% endblock %}
  16.     </head>
  17.     <body>
  18.         <input type="hidden" id="locale" value="{{ app.request.locale }}">
  19.         <input type="hidden" id="raiz" value="{{ app.request.getSchemeAndHttpHost() }}{{ app.request.getBaseUrl() }}">
  20.         <input type="hidden" id="error" value="{{ 'comun.error'|trans }}">
  21.         <div class="wrapper">
  22.             {% include('menu/menu.html.twig') %} 
  23.             <div class='main'>
  24.                 <nav class='navbar navbar-expand navbar-light bg-white'>
  25.                     <a class="sidebar-toggle d-flex mr-2">
  26.                         <i class="hamburger align-self-center"></i>
  27.                     </a>{% if "ROLE_EXTERNO" not in app.user.roles %}<button  id="fichar" style="display: none" data-link="{{ path('app_comun_fichaje_diario_new') }}" data-horasactivado="{{ path('app_comun_fichaje_diario_activado') }}" data-aviso="{{ path('app_comun_fichaje_diario_aviso') }}" class="btn btn-dribbble float-left"></button>{% endif %}
  28.            
  29.                     <div class="navbar-collapse collapse">
  30.                         <ul class="navbar-nav ml-auto">
  31.                             {% if "ROLE_EXTERNO" not in app.user.roles %}
  32.                                 {{ render(controller('App\\Controller\\Comun\\NotificacionController::mostrarNotificacionesPopUp')) }}
  33.                             {% endif %}
  34.                             <li class="nav-item dropdown">
  35.                                 <a class="nav-icon dropdown-toggle d-inline-block d-sm-none" href="#" data-toggle="dropdown">
  36.                                     <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-settings align-middle"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
  37.                                 </a>
  38.                                 <a class="nav-link dropdown-toggle d-none d-sm-inline-block" href="#" data-toggle="dropdown">
  39.                                     <span class="text-dark">{{ 'comun.idioma'|trans }}</span>                                           
  40.                                 </a>
  41.                                 <div class="dropdown-menu dropdown-menu-right">
  42.                                     {% if app.request.locale=='eus' %} 
  43.                                         <a class="dropdown-item" href="{{ path('idioma', {'idioma': 'es'}) }}">Español </a>
  44.                                     {% else %}
  45.                                         <a class="dropdown-item"   href="{{ path('idioma', {'idioma': 'eus'}) }}">Euskera</a>
  46.                                     {% endif %}
  47.                                 </div>
  48.                             </li>
  49.                             <li class="nav-item dropdown">
  50.                                 <a class="nav-icon dropdown-toggle d-inline-block d-sm-none" href="#" data-toggle="dropdown">
  51.                                     <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-settings align-middle"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
  52.                                 </a>
  53.                                 <a class="nav-link dropdown-toggle d-none d-sm-inline-block" href="#" data-toggle="dropdown">
  54.                                     {% if app.user is defined and app.user is not null %}
  55.                                         <img src="{{ asset('images/avatar.png') }}" style="width: 26.5px">
  56.                                         <span class="text-dark">{{ app.user.nombre}}</span>                                           
  57.                                     {% endif %}
  58.                                 </a>
  59.                                 <div class="dropdown-menu dropdown-menu-right">
  60.                                     {% if app.user %}
  61.                                         <a class="dropdown-item" href="{{ path("app_accesos_usuario_cambiar_password") }}">{{ 'comun.cambiarPass'|trans }}</a>
  62.                                         <a class="dropdown-item" href="{{ path("app_logout") }}">{{ 'comun.cerrarSesion'|trans }}</a>
  63.                                     {% else %}      
  64.                                         <a class="dropdown-item" href="{{ path("app_login") }}">Iniciar Sesión</a>
  65.                                     {% endif %}
  66.                                 </div>
  67.                             </li>
  68.                         </ul>
  69.                     </div>
  70.                 </nav>
  71.                 <main class='content'>
  72.                     {% block body %}
  73.                         TEXTO PLANTILLA
  74.                     {% endblock %}
  75.                 </main>
  76.             </div>  
  77.         </div>
  78.         {% block javascripts %}
  79.             <script src="{{ asset('template/js/app.js') }}"></script>
  80.             <script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.11.5/datatables.min.js"></script>
  81.             <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.2/js/dataTables.buttons.min.js"></script>
  82.             <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>    
  83.             <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.2/js/buttons.colVis.min.js"></script>
  84.             <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.html5.min.js"></script>
  85.             <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.2/js/buttons.bootstrap4.min.js"></script>    
  86.             <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
  87.             <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
  88.             <script src="https://cdn.datatables.net/buttons/2.2.2/js/buttons.print.min.js"></script>
  89.             <script src="https://cdn.datatables.net/rowgroup/1.1.4/js/dataTables.rowGroup.min.js"></script>
  90.             <script src="{{ asset('js/global.js') }}"></script>
  91.             <script src="{{ asset('js/filtro.js') }}"></script>
  92.             <script src="{{ asset('js/comun/fichaje.js') }}"></script>
  93.             <script src="{{ asset('js/comun/notificacion.js') }}"></script>
  94.         {% endblock %}
  95.     </body>
  96. </html>