templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}{% endblock %}</title>
  6.         {% block styles %}
  7.             <script src="https://kit.fontawesome.com/d5f717e47a.js" crossorigin="anonymous"></script>
  8.             <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css">
  9.             <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2-bootstrap-theme/0.1.0-beta.10/select2-bootstrap.min.css">
  10.             <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
  11.             <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.3/css/all.min.css">
  12.             
  13.             <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  14.       
  15.             <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  16.             <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
  17.             <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  18.            
  19.             <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script>
  20.             <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
  21.             <script src="{{ asset('js/enviarDatos.js') }}"></script>
  22.             <script src="{{ asset('js/operacionesComunes.js') }}"></script>
  23.   
  24.         {% endblock %}
  25.             <link rel="icon" type="image/x-icon" href="/images/favicon.png">
  26.     </head>
  27. <body class="d-flex flex-column min-vh-100">
  28. <style>
  29. .progress-container {
  30.     width:100%;
  31.     margin: 2em auto; 
  32.   }
  33.   .progress-steps {
  34.     counter-reset: step;
  35.   }
  36.   .progress-steps li {
  37.     list-style-type: none;
  38.     width: 10%;
  39.     float: left;
  40.     font-size: .7em;
  41.     position: relative;
  42.     text-align: center;
  43.     text-transform: uppercase;
  44.     color: #5DADE2;
  45.   }
  46.   .progress-steps li:before {
  47.     width: 2.5em;
  48.     height: 2.5em;
  49.     content: counter(step);
  50.     counter-increment: step;
  51.     line-height: 2.5em;
  52.     border: 2px solid #5DADE2;
  53.     display: block;
  54.     text-align: center;
  55.     margin: 0 auto .7em auto;
  56.     border-radius: 50%;
  57.     background-color: white;
  58.   }
  59.   .progress-steps li:after {
  60.     width: 100%;
  61.     height: 2px;
  62.     content: '';
  63.     position: absolute;
  64.     background-color: #edf2fb;
  65.     top: 1.3em;
  66.     left: -50%;
  67.     z-index: -1;
  68.   }
  69.   .progress-steps li:first-child:after {
  70.     content: none;
  71.   }
  72.   .progress-steps li.active {
  73.     color: #5DADE2;
  74.   }
  75.   .progress-steps li.active:before {
  76.     border-color: #5DADE2;
  77.   }
  78.   .progress-steps li.active + li:after {
  79.     background-color: #5DADE2;
  80.   }
  81.    
  82. </style>
  83.     
  84. {% block head %}
  85.   
  86. <!-- ////////// NAVIGATION BAR ////////////////-->
  87. <nav class="navbar navbar-expand-lg navbar-dark w3-black ps-2" id="headerPage">
  88.     <a class="navbar-brand" href="{{ path('app_homepage') }}">EXEM</a>
  89.     <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
  90.       <span class="navbar-toggler-icon"></span>
  91.     </button>
  92.     
  93.     <div class="collapse navbar-collapse" id="navbarNav">
  94.       <ul class="navbar-nav">
  95.         {% if is_granted('ROLE_ADMIN') %}
  96.         <li class="nav-item">
  97.           <a class="nav-link" href="{{ path('admin') }}">
  98.           <i class="fas fa-business-time fa-lg me-2"></i>PANEL
  99.           </a>
  100.         </li>
  101.         {% elseif is_granted('ROLE_BROKER') %}
  102.         <li class="nav-item">
  103.           <a class="nav-link" href='{{ path('broker') }}'>
  104.           <i class="fas fa-business-time fa-lg me-2"></i>PANEL
  105.           </a>
  106.         </li>
  107.         {% elseif is_granted('ROLE_LANDLORD') %}
  108.         <li class="nav-item">
  109.           <a class="nav-link" href="{{ path('landlord') }}">
  110.           <!-- <a class="nav-link" href="{# path('landlord_dashboard') #}">  -->
  111.           <i class="fas fa-business-time fa-lg me-2"></i>PANEL
  112.           </a>
  113.         </li>
  114.         {% elseif is_granted('ROLE_TENANT') %}
  115.         <li class="nav-item">
  116.           <a class="nav-link" href="{{ path('tenant') }}">
  117.           <i class="fas fa-business-time fa-lg me-2"></i>PANEL
  118.           </a>
  119.         </li>
  120.         {% endif %}
  121.         {#}
  122.         {% if is_granted('ROLE_BROKER') %}
  123.           <li class="nav-item">
  124.               <a class="nav-link" href="#">
  125.                 <i class="fa-regular fa-address-card fa-lg me-2"></i>Mi Perfil
  126.               </a>
  127.             </li>
  128.         {% endif %}
  129.         #}
  130.         <li class="nav-item">
  131.           <a class="nav-link" href="/">
  132.             <i class="fas fa-home fa-lg me-2"></i>Home
  133.           </a>
  134.         </li>
  135.         <li class="nav-item">
  136.           <a class="nav-link" href="/about">
  137.             <i class="fas fa-user fa-lg me-2"></i>Sobre Nosotros
  138.           </a>
  139.         </li>
  140.         <li class="nav-item">
  141.           <a class="nav-link" href="/properties">
  142.             <i class="fas fa-building fa-lg me-2"></i>Inmuebles
  143.           </a>
  144.         </li>
  145.          {% if not is_granted('ROLE_USER') %}
  146.           <li class="nav-item">
  147.             <a class="nav-link" href="/login">
  148.               <i class="fas fa-user-tie me-2"></i>Propietarios
  149.             </a>
  150.           </li>
  151.           <li class="nav-item">
  152.             <a class="nav-link" href="/login">
  153.               <i class="fas fa-user-ninja me-2"></i>Inquilinos
  154.             </a>
  155.           </li>
  156.          {% endif %}
  157.         
  158.         {% if is_granted('ROLE_ADMIN') %}
  159.           <li class="nav-item">
  160.               <a class="nav-link" href="#">
  161.                 <i class="fas fa-user-ninja me-2"></i>Mi perfil
  162.               </a>
  163.             </li>
  164.         {% endif %}
  165.         </ul>
  166.         <ul class="navbar-nav ms-auto">
  167.          <li class="nav-item">
  168.             <a class="nav-link" href="/contact">
  169.               <i class="fas fa-envelope fa-lg me-2"></i>Contáctanos
  170.             </a>
  171.           </li> 
  172.           {% if is_granted('ROLE_USER') %} 
  173.           <li class="nav-item">
  174.             <a class="nav-link" href="/logout">
  175.               <i class="fas fa-sign-in-alt fa-lg me-2"></i>Salir
  176.             </a>
  177.           </li>
  178.           {% else %}
  179.           
  180.           <li class="nav-item" >
  181.             <a class="nav-link" href="/login">
  182.               <i class="fas fa-sign-in-alt fa-lg me-2"></i>Acceder
  183.             </a>
  184.           </li>
  185.         
  186.           <li class="nav-item">
  187.             <a class="nav-link " href="/newuser">
  188.               <i class="fas fa-user-plus fa-lg me-2"></i>Registrarse
  189.             </a>
  190.           </li>
  191.       
  192.         {% endif %}
  193.        
  194.       </ul>
  195.     </div>
  196.   
  197. </nav>
  198. <div class="content">
  199.     <div class="container">
  200.             {% for flash_message in app.session.flashbag.get("error")%}
  201.                 <div class="alert alert-danger">
  202.                     {{flash_message}}
  203.                 </div>
  204.             {% endfor %}
  205.             {% for flash_message in app.session.flashbag.get("success") %}
  206.                 <div class="alert alert-success">
  207.                     {{flash_message}}
  208.                 </div>
  209.             {% endfor %} 
  210.             {% if app.flashes('success') is not empty %}
  211.               <div class="flash-message success">
  212.                 {{ app.flashes('success')[0] }}
  213.               </div>
  214.             {% endif %}
  215.             {% if app.flashes('error') is not empty %}
  216.               <div class="flash-message error">
  217.                 {{ app.flashes('error')[0] }}
  218.               </div>
  219.             {% endif %} 
  220.     </div>  
  221. </div>
  222. {% endblock %}
  223. {% block body %}
  224. <script>
  225.   $(document).ready(function() {
  226.         $('.select2').select2();
  227.     });
  228. </script>
  229. {% endblock %}
  230.         
  231. {% block footer %}
  232.   <!-- Footer -->
  233.   <footer class="footer mt-auto w3-center w3-black w3-padding-2" id="footerPage">
  234.     <div class="w3-large mt-2 mb-2">
  235.       <i class="fa fa-facebook-official w3-hover-opacity"></i>
  236.       <i class="fa fa-instagram w3-hover-opacity"></i>
  237.       <i class="fa fa-twitter w3-hover-opacity"></i>
  238.       <i class="fa fa-linkedin w3-hover-opacity"></i>
  239.       <a title="W3.CSS" target="_blank" class="ms-3 w3-hover-text-pink" style="font-size: 14px; color: white; text-decoration: underline;" href="/">Exem © 2023 </a>
  240.     </div>
  241.   </footer>
  242. {% endblock %}
  243. {% block javascripts %}
  244.   
  245. {% endblock %}
  246. </body>
  247.     
  248. </html>