templates/site/job/partials/header.html.twig line 1

Open in your IDE?
  1. <header>
  2.     <nav class="navbar navbar-expand-xl absolute-nav  cp-nav navbar-light bg-light fluid-nav" style="opacity: 0.9;">
  3.         <a class="navbar-brand" href="{{ path('homepage') }}">
  4.             <img src="{{ asset('build/backend/images/logo_last.png') }}" class="img-fluid" alt="" width="200"></a>
  5.         <a class="btn btn-success btn-lg ml-5 p-4" href="{{ path('consulta_index') }}">
  6.             Consultas gratuitas
  7.         </a>
  8.         <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  9.             <span class="navbar-toggler-icon"></span>
  10.         </button>
  11.         <div class="collapse navbar-collapse" id="navbarSupportedContent">
  12.             <ul class="navbar-nav ml-auto main-nav">
  13.                 <li class="menu-item active">
  14.                     <a title="Home" href="{{ path('homepage') }}">
  15.                         Inicio
  16.                     </a>
  17.                 </li>
  18.                 <li class="menu-item active">
  19.                     <a title="Home" href="{{ path('listado_companias') }}">
  20.                         Empresas
  21.                     </a>
  22.                 </li>
  23.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  24.                     <li class="menu-item dropdown">
  25.                         <a title="" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="false">
  26.                             Administración
  27.                         </a>
  28.                         <ul class="dropdown-menu">
  29.                             <li class="menu-item">
  30.                                 <a title="About" href="{{ path('backend') }}">
  31.                                     Panel de Administración
  32.                                 </a>
  33.                             </li>
  34.                         </ul>
  35.                     </li>
  36.                 {% endif %}
  37.                 <li class="menu-item dropdown">
  38.                     <a title="" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="false">
  39.                         Empleos
  40.                     </a>
  41.                     <ul class="dropdown-menu">
  42.                         <li class="menu-item">
  43.                             <a title="About" href="{{ path('job_list') }}">
  44.                                 Listado de Empleos
  45.                             </a>
  46.                         </li>
  47.                         {# {% if is_granted('ROLE_ADMIN') %}
  48.                                                                                                                                                                                                     <li class="menu-item"><a title="About" href="{{ path('job_new') }}">Publicar empleo</a></li>
  49.                                                                                                                                                                                                 {% endif %} #}
  50.                     </ul>
  51.                 </li>
  52.                 <li
  53.                     class="menu-item dropdown">
  54.                     {# <a title="" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true"
  55.                                                                                                                                                                                        aria-expanded="false">Servicios </a> #}
  56.                     <ul
  57.                         class="dropdown-menu">
  58.                         {# <li class="menu-item"><a title="About" href="{{ path('service_list') }}">Listado de
  59.                                                                                                                                                                                                                             servicios</a></li> #}
  60.                         {% if is_granted('ROLE_USER') %}
  61.                             {# <li class="menu-item"><a title="About" href="{{ path('service_new') }}">Publicar
  62.                                                                                                                                                                                                                                                             servicio</a></li> #}
  63.                         {% endif %}
  64.                     </ul>
  65.                 </li>
  66.                 {% if is_granted('ROLE_ADMIN') %}
  67.                     <li class="menu-item dropdown">
  68.                         <a title="" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="false">
  69.                             Empleador
  70.                         </a>
  71.                         <ul class="dropdown-menu">
  72.                             {#                            {% if is_granted('ROLE_SUPER_ADMIN') %}#}
  73.                             {#                                <li class="menu-item"><a title="About" href="#">Listado de empleadores</a></li>#}
  74.                             {#                            {% endif %}#}
  75.                             {# <li class="menu-item"><a title="About" href="{{ path('candidates') }}">Lista de 
  76.                                                                                                                                                                                                                                                             candidatos</a></li> #}
  77.                                 <li class="menu-item"> <a title="About" href="{{ path('dashboard') }}">
  78.                                     Tablero
  79.                                 </a>
  80.                             </li>
  81.                             <li class="menu-item">
  82.                                 <a title="About" href="{{ path('manage_candidates') }}">
  83.                                     Gestión de candidatos
  84.                                 </a>
  85.                             </li>
  86.                             <li class="menu-item">
  87.                                 <a title="About" href="{{ path('job_manage') }}">
  88.                                     Gestionar trabajos
  89.                                 </a>
  90.                             </li>
  91.                             <li class="menu-item">
  92.                                 <a title="About" href="{{ path('job_new') }}">
  93.                                     Publicar trabajo
  94.                                 </a>
  95.                                 {# <li class="menu-item"><a title="About" href="{{ path('my_services_list') }}">Servicios creados</a>
  96.                                                                                                                                                                                                                                                             </li> #}
  97.                             </li>
  98.                         </ul>
  99.                     </li>
  100.                 {% elseif is_granted('ROLE_USER') %}
  101.                     <li class="menu-item dropdown">
  102.                         <a title="" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="false">
  103.                             Usuario
  104.                         </a>
  105.                         <ul class="dropdown-menu">
  106.                             <li class="menu-item">
  107.                                 <a title="About" href="{{ path('dashboard') }}">
  108.                                     Tablero
  109.                                 </a>
  110.                             </li>
  111.                             <li class="menu-item">
  112.                                 <a title="About" href="{{ path('dashboard_edit') }}">
  113.                                     Editar perfil
  114.                                 </a>
  115.                             </li>
  116.                             <li class="menu-item">
  117.                                 <a title="About" href="{{ path('dashboard_resume_edit') }}">
  118.                                     Agregar
  119.                                 </a>
  120.                             </li>
  121.                             <li class="menu-item">
  122.                                 <a title="About" href="{{ path('dashboard_resume') }}">
  123.                                     CV
  124.                                 </a>
  125.                             </li>
  126.                             <li class="menu-item">
  127.                                 <a title="About" href="{{ path('dashboard_resume_edit') }}">
  128.                                     Editar
  129.                                 </a>
  130.                             </li>
  131.                             <li class="menu-item">
  132.                                 <a title="About" href="{{ path('dashboard_bookmarked') }}">
  133.                                     Marcados
  134.                                 </a>
  135.                             </li>
  136.                             <li class="menu-item">
  137.                                 <a title="About" href="{{ path('dashboard_applied') }}">
  138.                                     Trabajos aplicados
  139.                                 </a>
  140.                                 {# <li class="menu-item"><a title="About" href="{{ path('load_services_request') }}">Servicios solicitados</a></li> #}
  141.                             </li>
  142.                         </ul>
  143.                     </li>
  144.                 {% endif %}
  145.                 <li class="menu-item dropdown">
  146.                     <a title="" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="false">
  147.                         Páginas
  148.                     </a>
  149.                     <ul class="dropdown-menu">
  150.                         <li class="menu-item">
  151.                             <a title="About" href="{{ path('static_page_view', {'type': constant('App\\Entity\\StaticPage::TYPE_ABOUT') |url_encode}) }}">
  152.                                 Sobre
  153.                             </a>
  154.                         </li>
  155.                         <li class="menu-item">
  156.                             <a title="About" href="{{ path('static_page_view', {'type': constant('App\\Entity\\StaticPage::TYPE_CONTACT')|url_encode}) }}">
  157.                                 Contáctenos
  158.                             </a>
  159.                         </li>
  160.                         <li class="menu-item">
  161.                             <a title="About" href="{{ path('static_page_view', {'type': constant('App\\Entity\\StaticPage::TYPE_PRICE')|url_encode}) }}">
  162.                                 Planes de servicios
  163.                             </a>
  164.                         </li>
  165.                         <li class="menu-item">
  166.                             <a title="About" href="{{ path('static_page_view', {'type': constant('App\\Entity\\StaticPage::TYPE_HOW_WORKING')|url_encode}) }}">
  167.                                 Cómo
  168.                             </a>
  169.                         </li>
  170.                         <li class="menu-item">
  171.                             <a title="About" href="{{ path('static_page_view', {'type': constant('App\\Entity\\StaticPage::TYPE_FAQ')|url_encode}) }}">
  172.                                 FAQ
  173.                             </a>
  174.                         </li>
  175.                         <li class="menu-item">
  176.                             <a title="About" href="{{ path('site_policy') }}">
  177.                                 Términos y condiciones
  178.                             </a>
  179.                         </li>
  180.                     </ul>
  181.                 </li>
  182.                 {% if is_granted('IS_AUTHENTICATED_FULLY') == false %}
  183.                     <li class="menu-item post-job">
  184.                         <a title="Title" href="{{ path('job_new') }}">
  185.                             <i class="fas fa-plus"></i>
  186.                             Publicar un trabajo
  187.                         </a>
  188.                     </li>
  189.                     <li>
  190.                         <a id="help" tabindex="0" data-toggle="popover" data-html="true" data-placement="bottom" data-trigger="hover" title="Ayuda" data-content="<p class='text-center'>Seleccione para publicar un trabajo</p>"></a>
  191.                     </li>
  192.                     {# <li class="menu-item post-job"><a title="Title" href="{{ path('service_new') }}"><i
  193.                                                                                                                                                                                 class="fas fa-plus"></i>Brindar mis servicios</a></li> #}
  194.                 {% elseif  is_granted('ROLE_ADMIN') %}
  195.                     {#                                                                                                                        #}
  196.                     <li>
  197.                         <a id="help" tabindex="0" data-toggle="popover" data-html="true" data-placement="bottom" data-trigger="hover" title="Ayuda" data-content="<p class='text-center'>Seleccione para publicar un trabajo</p>"></a>
  198.                     </li>
  199.                     <li class="menu-item post-job">
  200.                         <a title="Title" href="{{ path('job_new') }}">
  201.                             <i class="fas fa-plus"></i>
  202.                             Publicar un trabajo
  203.                         </a>
  204.                     </li>
  205.                     {% elseif is_granted('ROLE_USER') %}
  206.                     {# <li class="menu-item post-job"><a title="Title" href="{{ path('service_new') }}"><i
  207.                                                                                                                                                                                 class="fas fa-plus"></i>Crear servicio</a></li> #}
  208.                 {% endif %}
  209.             </ul>
  210.             <ul class="navbar-nav ml-auto account-nav">
  211.                 {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  212.                     <li class="dropdown menu-item header-top-notification">
  213.                         <a href="#" class="notification-button"></a>
  214.                         <div class="notification-card">
  215.                             <div class="notification-head">
  216.                                 <span>
  217.                                     Notificaciones
  218.                                 </span>
  219.                                 <a href="#">
  220.                                     Marcar todo como leído
  221.                                 </a>
  222.                             </div>
  223.                             <div class="notification-body">
  224.                                 {% if notifications is defined and notifications is not null %}
  225.                                     {% for n in notifications %}
  226.                                         <a href="#" class="notification-list">
  227.                                             <i class="fas fa-bolt"></i>
  228.                                             <p>
  229.                                                 {{ n.context }}
  230.                                             </p>
  231.                                             <span class="time">
  232.                                                 {{ n.date|ago }}
  233.                                             </span>
  234.                                         </a>
  235.                                     {% endfor %}
  236.                                 {% endif %}
  237.                             </div>
  238.                             <div class="notification-footer">
  239.                                 <a href="{{ path('dashboard') }}">
  240.                                     Ver todas las notificaciones
  241.                                 </a>
  242.                             </div>
  243.                         </div>
  244.                     </li>
  245.                 {% endif %}
  246.                 {% if app.user == false %}
  247.                     <li class="menu-item login-popup">
  248.                         <a href="#" title="Title" type="button" data-toggle="modal" data-target="#exampleModalLong">
  249.                             Entrar
  250.                         </a>
  251.                     </li>
  252.                     <li class="menu-item login-popup">
  253.                         <a href="{{ path('app_register') }}" title="Registro">
  254.                             Registrarse
  255.                         </a>
  256.                     </li>
  257.                 {% else %}
  258.                     <li class="menu-item dropdown">
  259.                         <a title="" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="false">
  260.                             {{ app.user.username }}
  261.                         </a>
  262.                         <ul class="dropdown-menu">
  263.                             <li>
  264.                                 <a href="{{ path('dashboard') }}">
  265.                                     <span class="ti-user"></span>
  266.                                     Cuenta
  267.                                 </a>
  268.                             </li>
  269.                             <li>
  270.                                 <a href="{{ path('dashboard_edit') }}">
  271.                                     <span class="ti-settings"></span>
  272.                                     Configuración
  273.                                 </a>
  274.                             </li>
  275.                             <li>
  276.                                 <a href="/logout">
  277.                                     <span class="ti-power-off"></span>
  278.                                     Salir
  279.                                 </a>
  280.                             </li>
  281.                         </ul>
  282.                     </li>
  283.                 {% endif %}
  284.             </ul>
  285.         </div>
  286.     </nav>
  287.     <!-- Modal -->
  288.     {#{{ dump(app.user) }}#}
  289.     <div class="account-entry">
  290.         <div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-hidden="true">
  291.             <div class="modal-dialog" role="document">
  292.                 <div class="modal-content">
  293.                     <div class="modal-header">
  294.                         <h5 class="modal-title">
  295.                             <i data-feather="user"></i>
  296.                             Entrar
  297.                         </h5>
  298.                         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  299.                             <span aria-hidden="true">
  300.                                 &times;
  301.                             </span>
  302.                         </button>
  303.                     </div>
  304.                     <div class="modal-body">
  305.                         <form id="login-form" method="post" action="{{ path("fos_user_security_check") }}">
  306.                             <div class="form-group">
  307.                                 <input type="text" value="" name="_username" id="inputUsername" class="form-control" placeholder="Usuario o dirección de correo electrónico" required autofocus></div>
  308.                             <div class="form-group">
  309.                                 <input type="password" name="_password" id="inputPassword" class="form-control" placeholder="Contraseña" required>
  310.                                 <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"></div>
  311.                             <div class="more-option">
  312.                                 <div class="form-check">
  313.                                     <input class="form-check-input" type="checkbox" value="" id="defaultCheck1">
  314.                                     <label class="form-check-label" for="defaultCheck1">
  315.                                         Recuérdame
  316.                                     </label>
  317.                                 </div>
  318.                                 <a href="{{ path('fos_user_resetting_request') }}">
  319.                                     ¿Olvidó su contraseña?
  320.                                 </a>
  321.                             </div>
  322.                             <button id="_submit" type="submit" class="button primary-bg btn-block">
  323.                                 Entrar
  324.                             </button>
  325.                         </form>
  326.                         <p>
  327.                             ¿No tiene una cuenta?
  328.                             <a href="{{ path('app_register') }}">
  329.                                 Registrarse
  330.                             </a>
  331.                         </p>
  332.                     </div>
  333.                 </div>
  334.             </div>
  335.         </div>
  336.         <div class="modal fade" id="exampleModalLong2" tabindex="-1" role="dialog" aria-hidden="true">
  337.             <div class="modal-dialog" role="document">
  338.                 <div class="modal-content">
  339.                     <div class="modal-header">
  340.                         <h5 class="modal-title">
  341.                             <i data-feather="edit"></i>
  342.                             Registro
  343.                         </h5>
  344.                         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  345.                             <span aria-hidden="true">
  346.                                 &times;
  347.                             </span>
  348.                         </button>
  349.                     </div>
  350.                     <div class="modal-body">
  351.                         <div class="account-type">
  352.                             <a href="#" class="candidate-acc active">
  353.                                 <i data-feather="user"></i>
  354.                                 Candidato
  355.                             </a>
  356.                             <a href="#" class="employer-acc">
  357.                                 <i data-feather="briefcase"></i>
  358.                                 Empleador
  359.                             </a>
  360.                         </div>
  361.                         <form action="#">
  362.                             <div class="form-group">
  363.                                 <input type="text" placeholder="Nombre de usuario" class="form-control"></div>
  364.                             <div class="form-group">
  365.                                 <input type="email" placeholder="Dirección de correo electrónico" class="form-control"></div>
  366.                             <div class="form-group">
  367.                                 <input type="password" placeholder="Contraseña" class="form-control"></div>
  368.                             <div class="more-option terms">
  369.                                 <div class="form-check">
  370.                                     <input class="form-check-input" type="checkbox" value="" id="defaultCheck2">
  371.                                     <label class="form-check-label" for="defaultCheck2">
  372.                                         Acepto los
  373.                                         <a href="{{ path('site_policy') }}">
  374.                                             términos y condiciones
  375.                                         </a>
  376.                                     </label>
  377.                                 </div>
  378.                             </div>
  379.                             <button class="button primary-bg btn-block">
  380.                                 Registrar
  381.                             </button>
  382.                         </form>
  383.                     </div>
  384.                 </div>
  385.             </div>
  386.         </div>
  387.     </div>
  388. </header>