Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
88a7adaf
Commit
88a7adaf
authored
Feb 10, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to show company ahead login form
parent
257eb7ad
Pipeline
#1784
passed with stage
in 1 minute 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
views.py
members_space/views.py
+1
-0
config.md
outils/config.md
+3
-0
connect.html
templates/website/connect.html
+4
-0
No files found.
members_space/views.py
View file @
88a7adaf
...
@@ -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'
)
...
...
outils/config.md
View file @
88a7adaf
...
@@ -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)
...
...
templates/website/connect.html
View file @
88a7adaf
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment