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
6b684b03
Commit
6b684b03
authored
Aug 16, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make possibility to create full binome from scratch optionnal
parent
dfe92735
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
+10
-1
views.py
members/views.py
+1
-0
config.md
outils/config.md
+4
-0
inscriptions.html
templates/members/inscriptions.html
+5
-1
No files found.
members/views.py
View file @
6b684b03
...
...
@@ -105,6 +105,7 @@ def inscriptions(request, type=1):
'show_ftop_button'
:
getattr
(
settings
,
'SHOW_FTOP_BUTTON'
,
True
),
'db'
:
settings
.
COUCHDB
[
'dbs'
][
'member'
],
'ASSOCIATE_MEMBER_SHIFT'
:
getattr
(
settings
,
'ASSOCIATE_MEMBER_SHIFT'
,
''
),
'can_create_binome'
:
getattr
(
settings
,
'CAN_CREATE_BINOME'
,
True
),
'prepa_odoo_url'
:
getattr
(
settings
,
'PREPA_ODOO_URL'
,
'/members/prepa-odoo'
),
'committees_shift_id'
:
committees_shift_id
,
}
...
...
outils/config.md
View file @
6b684b03
...
...
@@ -131,6 +131,10 @@
La Cagette use False to implement custom rules
-
CAN_CREATE_BINOME = True (by default)
If set to False, in new member creation form, a member can be selected to be associated with.
-
ASSOCIATE_MEMBER_SHIFT = ''
Id number of the associate shift template
...
...
templates/members/inscriptions.html
View file @
6b684b03
...
...
@@ -79,16 +79,18 @@
</p>
{% endif %}
{% if
ASSOCIATE_MEMBER_SHIFT
%}
{% if
can_create_binome
%}
<p
id=
"add_binome"
>
+ Binomes (facultatif)
</p>
<div
id=
"associate_area"
style=
"display:none;"
>
<div
class=
"choice_button_area d-flex"
>
<div
id=
"existing_member_choice"
class=
"member_choice"
>
A mettre en binome avec un.e membre existant.e
</div>
{% if ASSOCIATE_MEMBER_SHIFT %}
<div
id=
"new_member_choice"
class=
"member_choice"
>
A mettre en binome avec un.e nouveau membre
</div>
{% endif %}
</div>
<div
id=
"existing_member_choice_action"
style=
"display:none;"
>
...
...
@@ -110,6 +112,7 @@
</div>
</div>
</div>
{% if ASSOCIATE_MEMBER_SHIFT %}
<div
id=
"new_member_choice_action"
style=
"display:none;"
>
<div
>
<div>
...
...
@@ -117,6 +120,7 @@
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
<div>
...
...
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