templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.         <meta name="description" content="">
  7.         <meta name="author" content="Alis">
  8.         <meta name="theme-color" content="#7952b3">
  9.         {% if page_refresh is defined and page_refresh > 0 -%}
  10.         <meta http-equiv="Refresh" content="{{ page_refresh }}">
  11.         {%- endif %}
  12.         <title>{% block titleup %}Alis - {% block title %}{% endblock %}{% endblock %}</title>
  13.         <link rel="icon" href="{{ asset('favicon.ico') }}" type="image/png" sizes="16x16">
  14.         <link rel="canonical" href="https://alis.infospid.com">
  15.         
  16.         
  17.         {% include 'common_include.html.twig' with {'include_file':'css'} %}
  18.         
  19.         <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,700;1,100;1,200;1,300;1,400;1,700&display=swap" rel="stylesheet">
  20.         <link rel="stylesheet" href="{{ asset('assets/alis/1.0/css/style.css') }}">
  21.         <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
  22.         <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
  23.         <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
  24.         <link rel="mask-icon" href="{{ asset('safari-pinned-tab.svg') }}" color="#5bbad5">
  25.         <meta name="msapplication-TileColor" content="#2b5797">
  26.         <meta name="theme-color" content="#ffffff">
  27.         {% block stylesheets %}
  28.         {% endblock %}
  29.         {% include 'common_include.html.twig' with {'include_file':'js'} %}
  30.         <script src="{{ asset('assets/alis/1.0/js/script.js') }}" defer></script>
  31.     </head>
  32.     <body class="{{ bodyclass|default('bg-light') }}">
  33.     <div id="loading-layer">
  34.         <p class="text-center"><i class="fa fa-spin fa-circle-notch  fa-4x"></i></p>
  35.         <p id="loading-text" class="text-center"></p>
  36.     </div>
  37.     {% block body %}
  38.         {% include 'base_nav.html.twig' %}
  39.         {% block container %}
  40.         <main class="container-fluid">
  41.             {% if recherche_rapide is not defined or recherche_rapide != 'disabled' %}
  42.             <div class="row">
  43.                 <form class="mt-3" action="{{ path('recherche_rapide') }}" method="POST">
  44.                     <div class="row g-1 align-items-center">
  45.                         <div class="col-auto">
  46.                             <label for="" class="col-form-label">Recherche rapide &nbsp;&nbsp;</label>
  47.                         </div>
  48.                         <div class="col-auto">
  49.                             <input type="text" id="annonce" name="annonce" class="form-control form-control-sm" aria-describedby="" placeholder="Numéro annonce">
  50.                         </div>
  51.                         <div class="col-auto">
  52.                             <input type="text" id="client" name="client" class="form-control form-control-sm" aria-describedby="" placeholder="Numéro client">
  53.                         </div>
  54.                         <div class="col-auto">
  55.                             <input type="text" id="facture" name="facture" class="form-control form-control-sm" aria-describedby="" placeholder="Numéro facture">
  56.                         </div>
  57.                         <input type="hidden" name="current_path" value="{{ app.request.get('_route') }}">
  58.                         <div class="col-auto">
  59.                             <button type="submit" class="btn btn-sm"><i class="fa fa-search"></i></button>
  60.                         </div>
  61.                     </div>
  62.                 </form>
  63.             </div>
  64.             {% endif %}
  65.             <div class="row">
  66.                 <div class="col-md-6 offset-md-3 p-2 mb-2">
  67.                     {% include 'base_flash.html.twig' %}
  68.                 </div>
  69.             </div>
  70.             <div class="row rounded p-3 mb-2 shadow-lg">
  71.                 {% block content %}
  72.                 {% endblock %}
  73.             </div>
  74.         </main>
  75.         {% endblock %}
  76.     {% endblock %}
  77.     {% block javascripts %}{% endblock %}
  78.     {% if app.user and app.user.notificationsunseen is not empty %}
  79.     <div aria-live="polite" aria-atomic="true" class="position-relative">
  80.         <div class="toast-container position-absolute top-50 start-50 translate-middle">
  81.         {% for notification in app.user.notificationsunseen %}
  82.         <div class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="false">
  83.             <div class="toast-header">
  84.                 <strong class="me-auto">{{ notification.subject }}</strong>
  85.                 <small>{{ notification.date|fulldate }}</small>
  86.                 {#<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>#}
  87.             </div>
  88.             <div class="toast-body" style="min-height: 200px;">
  89.                 {{ notification.message|raw }}
  90.             </div>
  91.             <div class="mt-2 pt-2 border-top toast-body text-end">
  92.                 <button type="button" class="btn btn-primary btn-sm mark-notification" data-mark-url="{{ path('app_alis_notification_mark', {id: notification.id}) }}" data-bs-dismiss="toast">Lu</button>
  93.                 <button type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="toast">Fermer</button>
  94.             </div>
  95.         </div>
  96.         {% endfor %}
  97.         </div>
  98.     </div>
  99.     {% endif %}
  100.     </body>
  101. </html>