<!DOCTYPE html><html> {# TODO: mettre template nav en fonction du role utilisateur #} <head> <meta charset="UTF-8"> <title>{% block title %}Welcome!{% endblock %}</title> <link rel="icon" type="image/png" href="/assets/GPU.png"/> {# Run `composer require symfony/webpack-encore-bundle` and uncomment the following Encore helpers to start using Symfony UX #} {% block stylesheets %} {{ encore_entry_link_tags('app') }} {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('app') }} {% endblock %} <!-- before the closing <body> tag --> {% if app.user is not null and app.user.contact is not null %} {% set enteprises = app.user.contact.enterpriseContactPositions %} {% if enterprises | length > 0 %} {% set enterprise = enterprises[0] %} {% if enterprise.mainColor != '#000000' %} <style> .navbar{ background-color: {{enterprise.mainColor}} !important; } .navbar .active::after { border-bottom: 15px solid {{enterprise.secondaryColor}} !important; } .bg-footer { background-image: linear-gradient(to right, {{enterprise.mainColor}}, {{enterprise.secondaryColor}}) !important; z-index: 100; margin-top: 1em; } table.dataTable thead th { background-color: {{enterprise.secondaryColor}} !important; } </style> {% endif %} {% endif %} {% endif %} </head> {% block body_head %} {% if app.user.roles[0] in ['ROLE_ADMIN','ROLE_BUSINESSLINEMANAGER','ROLE_GROUPMANAGER'] %} {% set body_class = 'body-admin' %} {% elseif app.user.roles[0] == 'ROLE_CUSTOMER' %} {% set body_class = 'body-customer' %} {% else %} {% set body_class = 'body-provider' %} {% endif %} <body data-controller="hello" class="{{body_class}}"> <div class="modal" tabindex="-1" role="dialog" id="leModal" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close" data-action="click->hello#modalClose"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body" id="toast-body" > <p>Modal body text goes here.</p> </div> </div> </div></div> {% endblock %} {% block navbar %} {% endblock %} {% block message %} <div class="container container-fluid"> <div class="row justify-content-md-center"> <div class="col-md-4"> {% for label, messages in app.flashes %} {% for message in messages %} <div class="alert alert-success" style="text-align:center"> {{ message }} </div> {% endfor %} {% endfor %} </div> </div> </div> {% endblock %} {% block modal %} {% include ('common/_modal.html.twig') %} {% endblock %} {% include 'common/_panel.html.twig' %} {% block body %}{% endblock %} {% block js %}{% endblock %} {% block footer %} {% include('common/_footer.html.twig') %} {% endblock %} </body></html>