templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title>Portail e-RH - {% block title %}{% endblock %}</title>
            <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
            <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
            <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css">
            <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/2.2.6/css/responsive.bootstrap.min.css">
            <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">
            <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.min.css">
            <link rel="stylesheet" type="text/css" href="https://unpkg.com/filepond/dist/filepond.css" rel="stylesheet">
            <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.css" integrity="sha512-0p3K0H3S6Q4bEWZ/WmC94Tgit2ular2/n0ESdfEX8l172YyQj8re1Wu9s/HT9T/T2osUw5Gx/6pAZNk3UKbESw==" crossorigin="anonymous" />
            <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/css/bootstrap4-toggle.min.css">
            {# <link rel="stylesheet" type="text/css" href="{{ asset('css/app.css') }}"> #}
            <link rel="icon" type="image/png" href="{{ asset('images/logo.png') }}"> 
            
            
            {% block stylesheets %}{{ encore_entry_link_tags('app') }}{% endblock %}
        </head>
        <body class="min-vh-100">
           
            {# {% if is_granted('ROLE_USER') %}
                <nav class="navbar navbar-expand-lg navbar-dark w-100 bg-tiles p-0 d-lg-none justify-content-center" style="z-index:100">
                    <button class="navbar-toggler border-0 p-3" type="button" data-toggle="collapse" data-target="#navbar-collapse">
                        <i class="fas fa-bars"></i>
                    </button>
                    <div class="collapse navbar-collapse bg-tiles w-100 position-absolute" style="top:53px" id="navbar-collapse">
                        <div class="container-fluid justify-content-center my-3">
                            <div class="row">
                                <div class="col-md-4 text-center my-2">
                                    <a href="{{ path('accueil') }}" class="text-white">
                                        <div class="{% if app.request.get('_route') == 'accueil' %}bg-tiles-white{% else %}bg-tiles{% endif %} p-3 rounded">
                                            <div class="col-12">
                                                <i class="fas fa-home"></i> 
                                            </div>
                                            <div class="col-12">
                                                Accueil
                                            </div>
                                        </div>
                                    </a>
                                </div> 
                                {% if is_granted('ROLE_USER') %}
                                    {% if app.user.client.activeBadge and app.user.activeBadge %}
                                    <div class="col-md-4 text-center my-2">
                                        <a href="{{ path('gestion_temps') }}" class="text-white">
                                            <div class="{% if app.request.get('_route') == 'gestion_temps' %}bg-tiles-white{% else %}bg-tiles{% endif %} p-3 rounded">
                                                <div class="col-12">
                                                    <i class="fas fa-user-clock"></i>
                                                </div>
                                                <div class="col-12"> 
                                                    Gestion des temps
                                                </div>
                                            </div>
                                        </a>
                                    </div> 
                                    {% endif %}
                                    <div class="col-md-4 text-center my-2">
                                        <a href="{{ path('app_logout') }}" class="text-white">
                                            <div class="bg-tiles p-3 rounded">
                                                <div class="col-12">
                                                    <i class="fas fa-sign-out-alt"></i> 
                                                </div>
                                                <div class="col-12">
                                                    Déconnexion
                                                </div>
                                            </div>
                                        </a>
                                    </div> 
                                {% endif %}
                            </div>  
                        </div>
                    </div>
                </nav>
                <nav class="navbar navbar-expand-lg navbar-dark w-100 bg-tiles p-0" style="z-index:100">
                    <div class="collapse navbar-collapse" id="navbar">
                        <ul class="navbar-nav mr-auto">
                            <li class="nav-item p-2">
                                <a class="nav-link" href="{{ path('accueil') }}" data-toggle="tooltip" data-placement="bottom" title="{{ 'accueil.titre' | trans }}"><i class="fas fa-home"></i></a>
                            </li>
                            {% if is_granted('ROLE_USER') %}
                                {% if app.user.client.activeBadge and app.user.activeBadge %}
                                    <li class="nav-item p-2">
                                        <a class="nav-link" href="{{ path('gestion_temps') }}" data-toggle="tooltip" data-placement="bottom" title="{{ 'gestion_temps.titre' | trans }}"><i class="fas fa-user-clock"></i></a>
                                    </li>  
                                {% endif %}
                            {% endif %}
                            {% if is_granted('ROLE_ADMIN') %}
                                <li class="nav-item {% if app.request.get('_route') == 'client_index' %}bg-active-item{% endif %} p-2">            
                                    <a href="{{ path('client_index') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Client"><i class="fas fa-project-diagram"></i></a>
                                </li>
                                {% if app.request.get('_route') == 'client_index' %}
                                    <li class="nav-item bg-active-item active p-2">    
                                        <a id="add-client" class="nav-link btn border-0" data-toggle="modal" data-target="#modal-formulaire-new">Ajouter un client</a>
                                    </li>
                                {% endif %}
                                <li class="nav-item {% if app.request.get('_route') == 'profils_index' %}bg-active-item{% endif %} p-2">            
                                    <a href="{{ path('profils_index') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Profils"><i class="fas fa-id-card"></i></a>
                                </li>
                                {% if app.request.get('_route') == 'profils_index' %}
                                    <li class="nav-item bg-active-item active p-2">            
                                        <a id="add-profils" class="nav-link btn border-0" data-toggle="modal" data-target="#modal-formulaire-new">Ajouter un profil</a>
                                    </li>
                                {% endif %}
                                <li class="nav-item {% if app.request.get('_route') == 'lieu_index' %}bg-active-item{% endif %} p-2">            
                                    <a href="{{ path('lieu_index') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Lieux"><i class="fas fa-map-marked-alt"></i></a>
                                </li>
                                {% if app.request.get('_route') == 'lieu_index' %}
                                    <li class="nav-item bg-active-item active p-2">            
                                        <a id="add-lieu" class="nav-link btn border-0" data-toggle="modal" data-target="#modal-formulaire-new">Ajouter un Lieu</a>
                                    </li>
                                {% endif %}
                                <li class="nav-item {% if app.request.get('_route') == 'ico_index' %}bg-active-item{% endif %} p-2">            
                                    <a href="{{ path('ico_index') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Icône"><i class="fas fa-icons"></i></a>   
                                </li>
                                {% if app.request.get('_route') == 'ico_index' %}
                                    <li class="nav-item bg-active-item active p-2">            
                                        <a id="add-ico" class="nav-link btn border-0" data-toggle="modal" data-target="#modal-formulaire-new">Ajouter un icône</a>
                                    </li>
                                {% endif %}
                                <li class="nav-item {% if app.request.get('_route') == 'user_index' %}bg-active-item{% endif %} p-2">
                                    <a href="{{ path('user_index') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Utilisateurs"><i class="fas fa-user"></i></a>
                                </li>
                                {% if app.request.get('_route') == 'user_index' %}
                                    <li class="nav-item bg-active-item active p-2">            
                                        <a id="add-user" class="nav-link btn border-0" data-toggle="modal" data-target="#modal-formulaire-new">Ajouter un utilisateur</a>
                                    </li>
                                {% endif %}
                                <li class="nav-item {% if app.request.get('_route') == 'activite_index' %}bg-active-item{% endif %} p-2">
                                    <a href="{{ path('activite_index') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Activités"><i class="fas fa-tasks"></i></a>
                                </li>
                                {% if app.request.get('_route') == 'activite_index' %}
                                    <li class="nav-item bg-active-item active p-2">            
                                        <a id="add-activite" class="nav-link btn border-0" data-toggle="modal" data-target="#modal-formulaire-new">Ajouter une activité</a>
                                    </li>
                                {% endif %}
                                <li class="nav-item {% if app.request.get('_route') == 'api_request' %}bg-active-item{% endif %} p-2">            
                                    <a href="{{ path('api_request') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="ApiRequest"><i class="fas fa-network-wired"></i></a>
                                </li>
                                <li class="nav-item {% if app.request.get('_route') == 'langue_index' %}bg-active-item{% endif %} p-2">            
                                    <a href="{{ path('langue_index') }}" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Langues"><i class="fas fa-language"></i></a>
                                </li>
                                {% if app.request.get('_route') == 'langue_index' %}
                                    <li class="nav-item bg-active-item active p-2">            
                                        <a id="add-langue" class="nav-link btn border-0" data-toggle="modal" data-target="#modal-formulaire-new">Ajouter une langue</a>
                                    </li>
                                {% endif %}
                            {% endif %}
                            </li>
                        </ul>
                        <ul class="navbar-nav">
                            <li class="nav-item p-2">
                                <a class="nav-link" id="button-infos" data-toggle="tooltip" data-placement="bottom" title="{{ 'informations.titre' | trans }}" href="{{ path('gestion_informations') }}"><i class="fas fa-user"></i></a>
                            </li>
                            <li class="nav-item p-2 btn-hover-red">
                                <a class="nav-link" href="{{ path('app_logout') }}" data-toggle="tooltip" data-placement="bottom" title="{{ 'login.bouton_deconnexion' | trans }}"><i class="fas fa-sign-out-alt"></i></a>
                            </li>
                        </ul>
                    </div>
                </nav>
            {% endif %} #}
            {# <div id="container-general"> #}
            {% block body %}{% endblock %}
            {# </div> #}
    
            
    
            {% block modals %}{% endblock %}
            
            <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
            <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
            <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
            <script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/js/all.js"></script>
            <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha512-z4OUqw38qNLpn1libAN9BsoDx6nbNFio5lA6CuTp9NlK83b89hgyCVq+N5FdBJptINztxn1Z3SaKSKUS5UP60Q==" crossorigin="anonymous"></script>
            <script type="text/javascript" src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script>
            <script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.6/js/dataTables.responsive.min.js"></script>
            <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js"></script>
            <script type="text/javascript" src="https://unpkg.com/filepond/dist/filepond.min.js"></script>
            <script type="text/javascript" src="https://unpkg.com/jquery-filepond/filepond.jquery.js"></script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js" integrity="sha512-nOQuvD9nKirvxDdvQ9OMqe2dgapbPB7vYAMrzJihw5m+aNcf0dX53m6YxM4LgA9u8e9eg9QX+/+mPu8kCNpV2A==" crossorigin="anonymous"></script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js" integrity="sha512-lOrm9FgT1LKOJRUXF3tp6QaMorJftUjowOWiDcG5GFZ/q7ukof19V0HKx/GWzXCdt9zYju3/KhBNdCLzK8b90Q==" crossorigin="anonymous"></script>
            <script src="https://cdn.jsdelivr.net/npm/animatedmodal@1.0.0/animatedModal.min.js"></script>
            <script src="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/js/bootstrap4-toggle.min.js"></script>
            {# <script type="text/javascript" src="{{ asset('js/app.js') }}"></script> #}
            
            
            {% block javascripts %}{{ encore_entry_script_tags('app') }}{% endblock %}
            <script>
                $(document).ready(function(){
                    /*$('[data-toggle="tooltip"]').tooltip();
                    $('[data-toggle-second="tooltip"]').tooltip();
                    $('#navbar-collapse').collapse('hide');
                    var path = window.location.pathname;
                    $('.nav-link').each(function(){
                        if(path == $(this).attr('href'))
                        {
                            $(this).addClass('active');
                        }
                    });
    
                    const SELECTOR_COLLAPSE_MENU = '#navbar-collapse';
    
                    const SELECTOR_CONTAINER_GLOBAL = '#container-general';
    
                    COLLAPSES = [
                        { selector: SELECTOR_COLLAPSE_MENU },
                    ];
                    
                    collapseBlur(COLLAPSES);
                    $('.btn-oui').removeClass('active');
                    $('.btn-non').removeClass('active');*/
                });   
            </script>
        </body>
    </html>