base.html 2.88 KB
Newer Older
Administrator committed
1 2 3 4 5 6 7 8
<!doctype html>
<html lang="fr">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{title}}</title>
    {% load static %}
    <link rel="stylesheet" href="{% static "css/knacss.min.css" %}">
9 10
    <link rel="stylesheet" href="{% static "css/common.css" %}?v=1651853225">
    <link rel="stylesheet" href="{% static "fontawesome/css/fa-svg-with-js.css" %}?v=1651853225">
Administrator committed
11 12
    {% if custom_css.all %}
      {% for fpath in custom_css.all %}
13
        <link rel="stylesheet" href="{% static ''|add:fpath %}?v=1651853225">
Administrator committed
14 15 16
      {% endfor %}
    {% endif %}

17
    <link rel="shortcut icon" type="image/png" href="{{favicon_url}}"/>
Administrator committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    {% block additionnal_css %}{% endblock %}
    <script type="text/javascript">
      // Prevent back page
      // Add actual page to history
      history.pushState(null, null, location.pathname)

      // Register back button click
      window.onpopstate = function (e) {
          // Prevent default action on back button click
          e.preventDefault()
          // Add actual page to history again
          history.pushState(null, null, location.pathname)
      }
      const False = false // prevent error if api return python False as a value
    </script>
    <script src="{% static "js/fp.js" %}"></script>
    <script src="{% static "js/jquery-3.3.1.min.js" %}"></script>
    <script src="{% static "fontawesome/js/fontawesome-all.min.js" %}"></script>
    <script src="{% static "js/modernizr-custom.min.js" %}"></script>
    {% block additionnal_scripts %}{% endblock %}
    </head>
39
  <body class="{% block body_class %}nospecific{% endblock %}">
Administrator committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
    {% block menu %}{% endblock %}
    <!-- The overlay -->
    <div id="modal" class="overlay">
      <!-- Button to close the overlay navigation -->
      <a href="javascript:void(0)" class="closebtn" id="modal_closebtn_top" onclick="closeModal()">&times;</a>
      <!-- Overlay content -->
      <div class="overlay-content">
        Chargement en cours...
      </div>
      <div id="box_load">
         <img id="loading_img" src='{% static "load.gif" %}' />
      </div>
    </div>

    <div id="msg_box">
      <a href="javascript:void(0)" class="closebtn" onclick="closeMsgBox()">&times;</a>
    </div>
    <div style="display:none" id="connect_form_template">
        <h2>Identifiation Odoo</h2>

        <form style="margin-bottom: 15px;">
            <input type="text" name="login" placeholder="Identifiant Odoo" />
            <input type="password" name="password" placeholder="Mot de passe" />
        </form>
        <em>Saisissez le mail d'un compte utilisateur Odoo et son mot de passe associé.</em>
    </div>
    {% block content %}{% endblock %}
    {% csrf_token %}
    <br class="mtop25" />
69
    {% if app_env != "prod" %}
Administrator committed
70 71 72
    <footer>
        Lit et écrit sur : {{odoo}}
    </footer>
73 74
    {% endif %}

Administrator committed
75 76 77

  </body>
</html>