templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="format-detection" content="telephone=no">
  6.         <title>
  7.             {% block title %}
  8.             {% endblock %}
  9.         </title>
  10.         <link rel="icon" href="/uploads/favicon.ico">
  11.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  12.         <!-- Bootstrap CSS -->
  13.         <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> 
  14.         {% block stylesheets %}
  15.             {{ encore_entry_link_tags('app') }}
  16.         {% endblock %}
  17.         {% block javascripts %}
  18.             {{ encore_entry_script_tags('app') }}
  19.         {% endblock %}
  20.         <link href="https://fonts.cdnfonts.com/css/trade-gothic-lt-std" rel="stylesheet">
  21.         <link href="{{ asset('css/main.css') }}" type="text/css" rel="stylesheet" />
  22.         <!-- jQuery library -->
  23.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  24.         <!-- jQuery UI library -->
  25.         <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  26.         <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  27.         <!-- Datatables -->            
  28.         <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.25/css/jquery.dataTables.css">
  29.         <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.js"></script>
  30.     </head>
  31.     <body>
  32.         {% if app.request.attributes.get('_route') == 'app_generador_de_firmas' or app.request.attributes.get('_route') == 'app_firma' %}
  33.         {% include 'navbar.html.twig' with { 'user_name': user_name|default('') } %}
  34.         {% elseif app.request.pathinfo|slice(0, 9) == '/empresas' or app.request.pathinfo|slice(0, 7) == '/cargos' or app.request.pathinfo|slice(0, 9) == '/oficinas' or app.request.pathinfo|slice(0, 5) == '/crud' or app.request.pathinfo|slice(0, 13) == '/localizacion' %}
  35.         {% include 'navbar-admin.html.twig' with { 'user_name': user_name|default('') } %}
  36.         {% endif %}
  37.         {% block body %}{% endblock %}
  38.         <!-- Option 1: Bootstrap Bundle with Popper -->
  39.         <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
  40.     </body>
  41. </html>