templates/auth.html.twig line 1

  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>{{ establishment() ? establishment().name : 'Kimia Manager' }} - {% block title '' %}</title>
  6.     {% if not app_config().host.isKimiaDomain and establishment() and establishment().thumbnail %}
  7.         <link rel="icon" type="image/png" href="{{ vich_uploader_asset(establishment().thumbnail, 'file') }}" sizes="32x32">
  8.         <link rel="apple-touch-icon" sizes="128x128" href="{{ vich_uploader_asset(establishment().thumbnail, 'file') }}">
  9.     {% else %}
  10.         <link rel="icon" type="image/png" href="{{ asset('images/favicon.png') }}" sizes="32x32">
  11.         <link rel="apple-touch-icon" sizes="128x128" href="{{ asset('images/favicon.png') }}">
  12.     {% endif %}
  13.     <meta name="viewport" content="width=device-width, initial-scale=1"/>
  14.     <link href="{{ asset('css/icons.min.css') }}" rel="stylesheet" type="text/css"/>
  15.     <link rel="stylesheet" href="{{ asset('libs/twitter-bootstrap-wizard/prettify.css') }}"/>
  16.     <style>
  17.         :root {
  18.             --bs-blue: {{ app_config().theme.colorPrimary }} !important;
  19.         }
  20.         .nav-pills {
  21.             --bs-nav-pills-link-active-bg: {{ app_config().theme.colorPrimary }} !important;
  22.         }
  23.         .btn-primary {
  24.             --bs-btn-bg: {{ app_config().theme.colorPrimary }}ee !important;
  25.             --bs-btn-border-color: {{ app_config().theme.colorPrimary }}ee !important;
  26.             --bs-btn-hover-bg: {{ app_config().theme.colorPrimary }}ff !important;
  27.             --bs-btn-hover-border-color: {{ app_config().theme.colorPrimary }}ff !important;
  28.             --bs-btn-active-bg: {{ app_config().theme.colorPrimary }}ff;
  29.             --bs-btn-active-border-color: {{ app_config().theme.colorPrimary }}ff !important;
  30.             --bs-btn-disabled-bg: {{ app_config().theme.colorPrimary }}99 !important;
  31.             --bs-btn-disabled-border-color: {{ app_config().theme.colorPrimary }}99 !important;
  32.         }
  33.         label.required:after {
  34.             content: " *";
  35.             color: red;
  36.         }
  37.     </style>
  38.     {% block stylesheets %}
  39.         {{- encore_entry_link_tags('app') }}
  40.     {% endblock %}
  41.     {% block javascripts %}
  42.         {{- encore_entry_script_tags('app') }}
  43.     {% endblock %}
  44. </head>
  45. <body>
  46. <div class="auth-page">
  47.     <div class="container-fluid p-0">
  48.         <div class="row g-0">
  49.             <div class="col-xxl-6 col-lg-6 col-md-6">
  50.                 <div class="auth-full-page-content d-flex p-sm-5 p-4">
  51.                     <div class="w-100">
  52.                         <div class="d-flex flex-column h-100">
  53.                             <div class="mb-4 mb-md-3 text-center">
  54.                                 <a href="{{ path('site_landing') }}" data-turbolinks="false" class="d-block auth-logo">
  55.                                     {% if establishment() and establishment().thumbnail %}
  56.                                         <img src="{{ vich_uploader_asset(establishment().thumbnail, 'file') }}" alt=""
  57.                                              height="100">
  58.                                     {% else %}
  59.                                         <img src="{{ asset('images/logo-km.png') }}" alt="Logo Kimia Manager"
  60.                                              height="50">
  61.                                     {% endif %}
  62.                                 </a>
  63.                             </div>
  64.                             {% include 'modules/flash.html.twig' %}
  65.                             {% block body %}{% endblock %}
  66.                             <div class="mt-4 mt-md-5 text-center font-size-11">
  67.                                 <p class="mb-0">©
  68.                                     <script>document.write(new Date().getFullYear())</script>
  69.                                     {{ establishment() ? establishment().name : 'Kimia Manager' }} by GroupIN
  70.                                 </p>
  71.                             </div>
  72.                         </div>
  73.                     </div>
  74.                 </div>
  75.             </div>
  76.             <div class="col-xxl-6 col-lg-6 col-md-6">
  77.                 <div class="auth-bg pt-md-5 p-4 d-flex fixed"
  78.                     {% if establishment() and app_config().theme.isLoginBgImage == "yes" %}
  79.                         style="background: url({{ vich_uploader_asset(app_config().theme.authThumbnail, 'file') }}) center center no-repeat;
  80.                             -webkit-background-size: cover;
  81.                             -moz-background-size: cover;
  82.                             -o-background-size: cover;
  83.                             background-size: cover;"
  84.                     {% elseif establishment() and app_config().theme.isLoginBgImage == 'no' %}
  85.                     {% else %}
  86.                         style="background: url({{ asset('images/small/img-6.jpg') }}) center center no-repeat;
  87.                             -webkit-background-size: cover;
  88.                             -moz-background-size: cover;
  89.                             -o-background-size: cover;
  90.                             background-size: cover;"
  91.                     {% endif %}
  92.                 >
  93.                     {% if establishment() and app_config().theme.isLoginBgColor == "yes" %}
  94.                         <div class="bg-overlay" style="background-color: {{ app_config().theme.colorPrimary }}"></div>
  95.                     {% elseif establishment() and app_config().theme.isLoginBgColor == 'no' %}
  96.                     {% else %}
  97.                         <div class="bg-overlay bg-primary"></div>
  98.                     {% endif %}
  99.                     {% if app_config().host.isKimiaDomain or establishment() and app_config().theme.isLoginBgAnimate %}
  100.                         <ul class="bg-bubbles">
  101.                             <li></li>
  102.                             <li></li>
  103.                             <li></li>
  104.                             <li></li>
  105.                             <li></li>
  106.                             <li></li>
  107.                             <li></li>
  108.                             <li></li>
  109.                             <li></li>
  110.                             <li></li>
  111.                         </ul>
  112.                     {% endif %}
  113.                 </div>
  114.             </div>
  115.         </div>
  116.     </div>
  117. </div>
  118. <script>
  119.     window.kimia = {
  120.         ...(window.kimia || {}),
  121.         USER: {{ app.user ? app.user.id : 'null' }},
  122.         MERCURE_URL: "{{ mercure_subscribe_url }}",
  123.         NOTIFICATION: new Date({{ (app.user and app.user.notificationsReadAt) ? app.user.notificationsReadAt.timestamp : 0 }})
  124.     }
  125. </script>
  126. <script src="{{ asset('libs/jquery/jquery.min.js') }}"></script>
  127. <script src="{{ asset('libs/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
  128. <script src="{{ asset('libs/metismenu/metisMenu.min.js') }}"></script>
  129. <script src="{{ asset('libs/simplebar/simplebar.min.js') }}"></script>
  130. <script src="{{ asset('libs/node-waves/waves.min.js') }}"></script>
  131. <script src="{{ asset('libs/feather-icons/feather.min.js') }}"></script>
  132. <script src="{{ asset('js/pages/pass-addon.init.js') }}"></script>
  133. <script src="{{ asset('libs/twitter-bootstrap-wizard/jquery.bootstrap.wizard.min.js') }}"></script>
  134. <script src="{{ asset('libs/twitter-bootstrap-wizard/prettify.js') }}"></script>
  135. <script src="{{ asset('js/pages/form-wizard.init.js') }}"></script>
  136. </body>
  137. </html>