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 %} | Baadhi : Smart Corporate Gouvernance{% endblock %}</title>
  6.         {% block stylesheets %}
  7.             {{ encore_entry_link_tags('app') }}
  8.             <meta charset="utf-8">
  9.             <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  10.             <meta name="viewport" content="width=device-width">
  11.             <meta name="theme-color" content="#2a6496">
  12.             <meta name="u2f-support" content="true">
  13.             <link rel="shortcut icon" href="{{ asset('images/svg/logo.svg') }}" />
  14.             <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
  15.         {% endblock %}
  16.         <style>
  17.                 .autocompletion{
  18.                     z-index: 99;
  19.                     position: absolute;
  20.                 }
  21.                 .container-auto-completion{
  22.                     position: relative;
  23.                 }
  24.                 .me-h-100 {
  25.                     max-height: 100px;
  26.                 }
  27. .nav-item a {
  28.     color: #0083b3  !important;
  29. }
  30. .navbar-toggler {
  31.     color: #0083b3  !important;
  32. }
  33.   .me-nav-bar {
  34.     box-shadow: 0 3px 8px 0 rgba(0,0,0,0.15);
  35.   }
  36.         </style>
  37.     </head>
  38.     {# <body 
  39.         {{ stimulus_controller('symfony/ux-swup/swup') }}
  40.         data-theme="fade" > #}
  41.         <body>
  42.         
  43.         <div class="page-container">
  44.             {% block navbar %}
  45.                 <nav class="navbar navbar-expand-lg navbar-light bg-white me-nav-bar">
  46.                     <div class="container">
  47.                         {#<a class="d-none navbar-brand font-weight-bold" href="{{ path('home') }}"><i class="fab fa-phoenix-squadron"></i> Baadhi</a>#}
  48.                         <a class="navbar-brand font-weight-bold" href="{{ path('home') }}">
  49.                             
  50.                             <img
  51.                                 src="/images/icone/BAADHI_TEAMLOGO.png"
  52.                                 width="200"
  53.                                 height="46"
  54.                                 class=""
  55.                                 alt=""
  56.                             >
  57.                         </a>
  58.                         
  59.                         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  60.                             <span class="navbar-toggler-icon"></span>
  61.                         </button>
  62.                         <div class="collapse navbar-collapse" id="navbarSupportedContent">
  63.                             <ul class="navbar-nav mr-auto">
  64.                                 {% if app.user %}
  65.                                     <li class="nav-item active">
  66.                                         <a class="nav-link" href="{{ path('feed') }}"><i class="fas fa-home"></i> Accueil</a>
  67.                                     </li>
  68.                                     <li class="nav-item active">
  69.                                         <a class="nav-link" href="{{path("docs.task")}}"><i class="fas fa-tasks"></i> Liste des tâches</a>
  70.                                     </li>
  71.                                     {% block companyOwner %}
  72.                                         <li class="nav-item active">
  73.                                             <a class="nav-link font-weight-bold" href="{{ path('company.job') }}"> <i class="fas fa-user-circle"></i> {{ app.user.firstname|title }}</a>
  74.                                         </li>
  75.                                     {% endblock %}
  76.                                 {% else %}
  77.                                 <li class="nav-item active">
  78.                                     <a class="nav-link" href="{{ path('home') }}">Accueil</a>
  79.                                     </li>
  80.                                     <li class="nav-item active">
  81.                                         <a class="nav-link" href="#">Nos produits</a>
  82.                                     </li>
  83.                                     <li class="nav-item active">
  84.                                         <a class="nav-link" href="#">Abonnements</a>
  85.                                     </li>
  86.                                 {% endif %}
  87.                             </ul>
  88.                             <ul class="navbar-nav mr-auto">
  89.                                 {% if app.user  %}
  90.                                     <li class="nav-item dropdown active font-weight-bold">
  91.                                         <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
  92.                                            <i class="far fa-user-circle"></i> {{app.user.firstname|title}} {{app.user.name|first}} <span class="caret"></span>
  93.                                         </a>
  94.                                         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
  95.                                             <a class="dropdown-item" href="{{ path('auth.profile') }}"><i class="far fa-user-circle"></i> Mon Profile</a>
  96.                                             <a class="dropdown-item" href="{{ path('app.logout') }}"
  97.                                             onclick="event.preventDefault();document.getElementById('logout-form').submit();">
  98.                                                 <i class="fas fa-sign-out-alt"></i> Déconnexion
  99.                                             </a>
  100.                                             <form id="logout-form" action="{{ path('app.logout') }}" method="POST" style="display: none;"></form>
  101.                                         </div>
  102.                                     </li>
  103.                                     <li class="nav-item">
  104.                                         <form class="form-inline">
  105.                                             <input class="form-control mr-sm-2" type="search" placeholder="Recherche ..." aria-label="Search">
  106.                                         </form>
  107.                                     </li>
  108.                                 {% else %}
  109.                                     {% block baadhi %}
  110.                                         <li class="nav-item">
  111.                                             <a class="nav-link active" href="{{ path('company.presentation.index') }}">Baadhi pour Entreprise</a>
  112.                                         </li>
  113.                                     {% endblock %}
  114.                                     <li class="nav-item">
  115.                                         <a class="nav-link active font-weight-bold" href="{{ path('app.login') }}">Connexion</a>
  116.                                     </li>
  117.                                     <li class="nav-item">
  118.                                         <a class="nav-link active" href="{{ path('app.register') }}">Inscription</a>
  119.                                     </li>
  120.                                 {% endif %}
  121.                                 <li class="nav-item">
  122.                                     <a class="nav-link active" href="{{ path('support') }}">Support</a>
  123.                                 </li>
  124.                             </ul>
  125.                             
  126.                         </div>
  127.                     </div>
  128.                 </nav>
  129.             {% endblock %}
  130.             <div class="site-container">
  131.                 <main id="swup">
  132.                 {% block body %} {% endblock %}
  133.                 </main>
  134.             </div>
  135.             <script src="{{asset("file/socket.js")}}"></script>
  136.                 <script src="{{asset("file/toast.js")}}"></script>
  137.                 {% set slugUser = "" %}
  138.                 {% if app.user %}
  139.                 {% set slugUser = app.user.slug %}
  140.                 {% endif %}
  141.                 
  142.                 <script>
  143.                     var conn = new ab.Session("wss://give.agromwinda.com/ws/",
  144.                         function() {
  145.                             conn.subscribe('https://baadhi.com/users/{{slugUser}}', function(topic,{data}) {
  146.                                 new Toast({
  147.                                     message: data.message,
  148.                                     type: data.status == 1 ? 'success': "danger",
  149.                                     customButtons: [
  150.                                     ]
  151.                                 });
  152.                             });
  153.                         },
  154.                         function() {
  155.                             console.warn('WebSocket connection closed');
  156.                         },
  157.                         {'skipSubprotocolCheck': true}
  158.                     );
  159.                 </script>
  160.             <div class="app-footer">
  161.                 <section>
  162.                     <div class="text-center">
  163.                         &copy; {{ "now"|date("Y") }}, <strong>Baadhi</strong>. Tous droits réservés !
  164.                         {# {% if is_granted('ROLE_ROOT') %}
  165.                             <span class="font-weight-bold"><a href="{{ path('root') }}">Root</a></span>
  166.                         {% endif %} #}
  167.                     </div>
  168.                 </section>
  169.             </div>
  170.             
  171.             {% block javascripts %}
  172.                 {{ encore_entry_script_tags('app') }}
  173.             {% endblock %}
  174.         </div>
  175.     </body>
  176. </html>