templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4.     {# Meta Information #}
  5.     <meta charset="UTF-8">
  6.     <title>{% block title %}We Act - L'Excellence du Notariat{% endblock %}</title>
  7.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8.     <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  9.     {# Fonts #}
  10.     <link rel="stylesheet"
  11.           href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700|Raleway:300,400,500,600,700">
  12.     <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet"/>
  13.     {# Styles #}
  14.     {{ encore_entry_link_tags('style') }}
  15.     {% block stylesheets %}{% endblock %}
  16. </head>
  17. <body>
  18. <div class="d-none" id="data" data-sentrydsn="{{ app.request.server.get('SENTRY_DSN') }}"></div>
  19. <div class="d-none" id="loader">
  20.     <img src="{{ asset('media/client-logos/logo-weact.svg') }}">
  21. </div>
  22. {% set currentRoute = app.request.get('_route') %}
  23. <div class="header">
  24.     <!-- begin:: Header -->
  25.     <a href="{% if app.user %}{{ path('dashboard') }}{% else %}{{ path('index') }}{% endif %}">
  26.         <img class="logo" alt="Logo" src="{{ asset('media/logos/logo-weact.svg') }}"/>
  27.     </a>
  28.     {% if app.user %}
  29.         <div id="kt_header" class="kt-header w-100">
  30.             <!-- begin: Header Menu -->
  31.             <div class="kt-header-menu-wrapper  kt-grid__item w-100 align-right" id="kt_header_menu_wrapper">
  32.                 <div id="kt_header_menu" class="kt-header-menu kt-header-menu-mobile  d-flex flex-column flex-md-row  justify-content-between pull-right">
  33.                     {% set mercureId = app.user.roles[0]|slice(5,5)~app.user.id %}
  34.                     <input type="hidden" id="mercureId" value="{{ mercureId }}">
  35.                         <ul class="kt-menu__nav ">
  36.                             {{ include('menu/profile.html.twig') }}
  37.                             {% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_DIRECTOR')) %}
  38.                                 {{ include('menu/director.html.twig') }}
  39.                             {% endif %}
  40.                             {% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_ADVISOR')) %}
  41.                                 {{ include('menu/advisor.html.twig') }}
  42.                             {% endif %}
  43.                             {% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_MANAGER')) %}
  44.                                 {{ include('menu/manager.html.twig') }}
  45.                             {% endif %}
  46.                             {% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_COLLABORATOR')) %}
  47.                                 {{ include('menu/collaborator.html.twig') }}
  48.                             {% endif %}
  49.                             {% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_MANDATARY')) %}
  50.                                 {{ include('menu/mandatary.html.twig') }}
  51.                             {% endif %}
  52.                             {% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_COACH')) %}
  53.                                 {{ include('menu/coach.html.twig') }}
  54.                             {% endif %}
  55.                             {% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_HEADQUARTER')) %}
  56.                                 {{ include('menu/headquarter.html.twig') }}
  57.                             {% endif %}
  58.                             {% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_ACCOUNTANT')) %}
  59.                                 {{ include('menu/accountant.html.twig') }}
  60.                             {% endif %}
  61.                         </ul>
  62.                 </div>
  63.             </div>
  64.             <!-- end: Header Menu -->
  65.         </div>
  66.     {% else %}
  67.         <div id="kt_header" class="kt-header col-10">
  68.             <div class="kt-header-menu-wrapper kt-grid__item col-12" id="kt_header_menu_wrapper">
  69.                 <div id="kt_header_menu" class="kt-header-menu kt-header-menu-mobile col-12 row">
  70.                     {{ include('menu/offline.html.twig') }}
  71.                 </div>
  72.             </div>
  73.         </div>
  74.     {% endif %}
  75.     <!-- end:: Header -->
  76. </div>
  77. <div class="content kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
  78.     {% block page_content_start %}
  79.         {% for message in app.flashes('success') %}
  80.             <div class="alert alert-success">
  81.                 {{ message }}
  82.             </div>
  83.         {% endfor %}
  84.         {% for message in app.flashes('danger') %}
  85.             <div class="alert alert-danger">
  86.                 {{ message }}
  87.             </div>
  88.         {% endfor %}
  89.         {% for message in app.flashes('warning') %}
  90.             <div class="alert alert-warning">
  91.                 {{ message }}
  92.             </div>
  93.         {% endfor %}
  94.     {% endblock %}
  95.     <div class="container">
  96.         {% block body %}{% endblock %}
  97.     </div>
  98. </div>
  99. {#<!--footer-->#}
  100. <div class="kt-footer footer py-4 d-flex flex-lg-column bg-weact" id="kt_footer">
  101.     <div class="container-fluid d-flex flex-column flex-md-row align-items-center justify-content-between">
  102.         <div class="row">
  103.             <div class="col-md-3 img ">
  104.                 <img class="logo" alt="Logo" src="{{ asset('media/client-logos/logo-weact-footer.svg') }}"/>
  105.             </div>
  106.             <div class="col-md-9 desc weact d-flex align-items-center justify-content-center"> We Act, l’Excellence du Notariat.<br></div>
  107.         </div>
  108.         <div class=""><div class="menu-footer-menu-container">
  109.                 <ul class="menu">
  110.                     <li class="weact"><a class="weact" href="https://we-act.fr/mentions-legales/">Mentions Légales</a></li>
  111.                     <li class="weact"><a class="weact" href="https://we-act.fr/charte-de-confidentialite/">Charte de confidentialité</a></li>
  112.                     <li class="weact"><a class="weact" href="https://we-act.fr/paiement-securise/">Paiement sécurisé</a></li>
  113.                     <li class="weact"><a class="weact" href="https://we-act.fr/blog/">Blog</a></li>
  114.                 </ul>
  115.             </div>
  116.         </div>
  117.     </div>
  118. </div>
  119. {#<!--/footer-->#}
  120. <div class="kt-grid kt-grid--hor kt-grid--root">
  121.     {% set showWeact = app.request.get('_route') is same as('collaborator_edit_sales_agreement') %}
  122.     {% set editAgencySalesPath = app.request.get('_route') is same as('edit_sales_agreement') %}
  123.     {% set idSAAvailable = constant('App\\Utils\\CommonConstants::STATUS_ID_AVAILABLE') %}
  124.     {% set showAgency = editAgencySalesPath and salesAgreementForm is defined and salesAgreementForm.vars.value.status.id == idSAAvailable %}
  125.     {% if (showWeact) or (showAgency) %}
  126.         <div class="documents-wrapper d-none" id="rdocuments">
  127.             <button type="button" class="close widget right" aria-label="Close" style="left: 22%">
  128.                 <i class="far fa-times-circle fa-xs d-none"></i>
  129.                 <i class="far fa-arrow-alt-circle-left fa-xs"></i>
  130.             </button>
  131.             <div class="col-xs-12 row m-0 p-0" style="min-height: 120px;">
  132.                 <div class="m-0 p-0 vertical-text-right" id="divDocuments">
  133.                     <span class="onglet-weact">Documents</span>
  134.                 </div>
  135.                 <div class="col-xs-11  m-0 p-0 scroll">
  136.                     {{ render(controller('App\\Controller\\CollaboratorController::documents', app.request.get('_route_params'))) }}
  137.                 </div>
  138.             </div>
  139.         </div>
  140.     {% endif %}
  141.     {% if (showWeact)%}
  142.         <div class="clauses-wrapper d-none" id="rclauses">
  143.             <button type="button" class="close widget left" aria-label="Close" style="right: 22%">
  144.                 <i class="far fa-times-circle fa-xs d-none"></i>
  145.                 <i class="far fa-arrow-alt-circle-right fa-xs"></i>
  146.             </button>
  147.             <div class="col-xs-12 row m-0 p-0" style="min-height: 120px;">
  148.                 <div class="col-xs-11  m-0 p-0 scroll">
  149.                     {{ render(controller('App\\Controller\\CollaboratorController::clauses', app.request.get('_route_params'))) }}
  150.                 </div>
  151.                 <div class="m-0 p-0 vertical-text-left" id="divClauses">
  152.                     <span class="onglet-weact">Clauses</span>
  153.                 </div>
  154.             </div>
  155.         </div>
  156.     {% endif %}
  157.     {% if (showAgency) %}
  158.         <div class="comments-wrapper d-none" id="rcomments">
  159.             <button type="button" class="close widget left" aria-label="Close" >
  160.                 <i class="far fa-times-circle fa-xs"></i>
  161.                 <i class="far fa-arrow-alt-circle-right fa-xs d-none"></i>
  162.             </button>
  163.             <div class="col-xs-12 row m-0 p-0" style="min-height: 120px;">
  164.                 <div class="col-xs-11  m-0 p-0 scroll">
  165.                     {{ render(controller('App\\Controller\\SalesAgreementController::comments', app.request.get('_route_params'))) }}
  166.                 </div>
  167.                 <div class="m-0 p-0 vertical-text-left" id="divComments">
  168.                     <span class="onglet-weact">Commentaires</span>
  169.                 </div>
  170.             </div>
  171.         </div>
  172.     {% endif %}
  173. </div>
  174. <script>
  175.     let KTAppOptions = {
  176.         "colors": {
  177.             "state": {
  178.                 "brand": "#1cac81",
  179.                 "metal": "#c4c5d6",
  180.                 "light": "#ffffff",
  181.                 "accent": "#00c5dc",
  182.                 "primary": "#5867dd",
  183.                 "success": "#34bfa3",
  184.                 "info": "#36a3f7",
  185.                 "warning": "#ffb822",
  186.                 "danger": "#fd3995",
  187.                 "focus": "#9816f4"
  188.             },
  189.             "base": {
  190.                 "label": [
  191.                     "#b9bdc1",
  192.                     "#aeb2b7",
  193.                     "#414b4c",
  194.                     "#343d3e"
  195.                 ],
  196.                 "shape": [
  197.                     "#eef4f3",
  198.                     "#e0e9e6",
  199.                     "#80c3af",
  200.                     "#41675c"
  201.                 ]
  202.             }
  203.         }
  204.     };
  205. </script>
  206. {{ encore_entry_script_tags('app') }}
  207. {% block javascripts %}{% endblock %}
  208. </body>
  209. </html>