Commit 88a7adaf by François C.

Add option to show company ahead login form

parent 257eb7ad
Pipeline #1784 passed with stage
in 1 minute 38 seconds
...@@ -28,6 +28,7 @@ def index(request, exception=None): ...@@ -28,6 +28,7 @@ def index(request, exception=None):
context = { context = {
'title': 'Espace Membre', 'title': 'Espace Membre',
'COMPANY_LOGO': getattr(settings, 'COMPANY_LOGO', None)
} }
template = loader.get_template('members_space/index.html') template = loader.get_template('members_space/index.html')
......
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
- COMPANY_NAME = 'Les Grains de Sel' - COMPANY_NAME = 'Les Grains de Sel'
- COMPANY_LOGO = 'https://domaine.name/img/logo.png'
- ADMIN_IDS = [13] - ADMIN_IDS = [13]
Used to show hidden things. for example, input barcode in shelf adding product (Odoo user id array) Used to show hidden things. for example, input barcode in shelf adding product (Odoo user id array)
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
{% block content %} {% block content %}
{% if with_shop_header %} {% if with_shop_header %}
{% include "shop/connect_header.html" %} {% include "shop/connect_header.html" %}
{% elif COMPANY_LOGO %}
<div style="width:100%; text-align: center">
<img src="{{COMPANY_LOGO}}" alt="{{COMPANY_NAME}}" width=250 />
</div>
{% endif %} {% endif %}
<div id="connect_form_template" style="text-align:center;"> <div id="connect_form_template" style="text-align:center;">
<form method="POST"> <form method="POST">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment