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
d83933da
Commit
d83933da
authored
Feb 28, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
binome pages
parent
4bb7bd46
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
151 additions
and
3 deletions
+151
-3
admin.py
members/admin.py
+14
-0
urls.py
members/urls.py
+2
-0
manage_attached.html
templates/members/admin/manage_attached.html
+14
-3
manage_attached_create.html
templates/members/admin/manage_attached_create.html
+68
-0
manage_attached_delete.html
templates/members/admin/manage_attached_delete.html
+53
-0
No files found.
members/admin.py
View file @
d83933da
...
...
@@ -333,6 +333,20 @@ def manage_attached(request):
'module'
:
'Membres'
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
manage_attached_create
(
request
):
""" Administration des services des membres """
template
=
loader
.
get_template
(
'members/admin/manage_attached_create.html'
)
context
=
{
'title'
:
'BDM - Binômes'
,
'module'
:
'Membres'
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
manage_attached_delete
(
request
):
""" Administration des services des membres """
template
=
loader
.
get_template
(
'members/admin/manage_attached_delete.html'
)
context
=
{
'title'
:
'BDM - Binômes'
,
'module'
:
'Membres'
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
get_makeups_members
(
request
):
""" Récupération des membres qui doivent faire des rattrapages """
res
=
CagetteMembers
.
get_makeups_members
()
...
...
members/urls.py
View file @
d83933da
...
...
@@ -58,6 +58,8 @@ urlpatterns = [
url
(
r'^admin/manage_makeups$'
,
admin
.
manage_makeups
),
url
(
r'^admin/manage_shift_registrations$'
,
admin
.
manage_shift_registrations
),
url
(
r'^admin/manage_attached$'
,
admin
.
manage_attached
),
url
(
r'^admin/manage_attached_create$'
,
admin
.
manage_attached_create
),
url
(
r'^admin/manage_attached_delete$'
,
admin
.
manage_attached_delete
),
url
(
r'^get_makeups_members$'
,
admin
.
get_makeups_members
),
url
(
r'^update_members_makeups$'
,
admin
.
update_members_makeups
),
url
(
r'^delete_shift_registration$'
,
admin
.
delete_shift_registration
),
...
...
templates/members/admin/manage_attached.html
View file @
d83933da
...
...
@@ -23,11 +23,22 @@
</div>
<div
class=
"header txtcenter"
>
<h1>
Gestion des Binômes
</h1>
<h2>
Créer ou désolidariser un binôme
</h2>
</div>
<div
class=
"page_content"
>
<div
id=
"search_member_area"
>
<div
class=
"management_type_buttons txtcenter"
>
<button
type=
"button"
class=
"btn--primary management_type_button"
id=
"manage_attached_create_button"
>
Créer un binôme
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-arrow-right"
></i></span>
</button><br>
<button
type=
"button"
class=
"btn--primary management_type_button"
id=
"manage_attached_delete_button"
>
Désolidariser un binôme
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-arrow-right"
></i></span>
</button><br>
</div>
<!-- <div id="search_member_area">
<div id="search_member_form_area">
<h4>Rechercher le.a coopérateur.ice titulaire</h4>
<form id="search_member_form" action="javascript:;" method="post">
...
...
@@ -41,7 +52,7 @@
<p><i>Choisissez parmi les membres trouvés :</i></p>
</div>
<div class="search_member_results"></div>
</div>
</div>
-->
</div>
</div>
...
...
templates/members/admin/manage_attached_create.html
0 → 100644
View file @
d83933da
{% extends "base.html" %}
{% load static %}
{% block additionnal_css %}
<link
rel=
"stylesheet"
href=
"{% static 'css/datatables/datatables.min.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'css/admin/manage_attached.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'jquery-ui-1.12.1/jquery-ui.min.css' %}"
>
{% endblock %}
{% block additionnal_scripts %}
<script
type=
"text/javascript"
src=
"{% static 'jquery-ui-1.12.1/jquery-ui.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/datatables.min.js' %}"
></script>
{% endblock %}
{% block content %}
<div
class=
"page_body"
>
<div
id=
"back_to_admin_index"
>
<button
type=
"button"
class=
"btn--danger"
><i
class=
"fas fa-arrow-left"
></i>
Retour
</button>
</div>
<div
class=
"login_area"
>
{% include "common/conn_admin.html" %}
</div>
<div
class=
"header txtcenter"
>
<h1>
Gestion des Binômes
</h1>
</div>
<div
class=
"page_content"
>
<div
id=
"search_member_area"
>
<div
id=
"search_member_form_area"
>
<h4>
Rechercher le.a coopérateur.ice titulaire
</h4>
<form
id=
"search_member_form"
action=
"javascript:;"
method=
"post"
>
<input
type=
"text"
id=
"search_member_input"
value=
""
placeholder=
"Nom ou numéro du coop..."
required
>
<button
type=
"submit"
class=
"btn--primary"
id=
"search_member_button"
>
Recherche
</button>
</form>
</div>
</div>
<div
class=
"search_member_results_area"
style=
"display:none;"
>
<div
class=
"search_results_text"
>
<p><i>
Choisissez parmi les membres trouvés :
</i></p>
</div>
<div
class=
"search_member_results"
></div>
</div>
<div
id=
"search_member_form_area"
>
<h4>
Rechercher le.a coopérateur.ice co-titulaire
</h4>
<form
id=
"search_member_form"
action=
"javascript:;"
method=
"post"
>
<input
type=
"text"
id=
"search_member_input"
value=
""
placeholder=
"Nom ou numéro du coop..."
required
>
<button
type=
"submit"
class=
"btn--primary"
id=
"search_member_button"
>
Recherche
</button>
</form>
</div>
</div>
<div
class=
"search_member_results_area"
style=
"display:none;"
>
<div
class=
"search_results_text"
>
<p><i>
Choisissez parmi les membres trouvés :
</i></p>
</div>
<div
class=
"search_member_results"
></div>
</div>
</div>
</div>
</div>
<script
src=
'{% static "js/all_common.js" %}?v='
></script>
<script
src=
'{% static "js/admin/manage_attached.js" %}?v='
></script>
{% endblock %}
\ No newline at end of file
templates/members/admin/manage_attached_delete.html
0 → 100644
View file @
d83933da
{% extends "base.html" %}
{% load static %}
{% block additionnal_css %}
<link
rel=
"stylesheet"
href=
"{% static 'css/datatables/datatables.min.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'css/admin/manage_attached.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'jquery-ui-1.12.1/jquery-ui.min.css' %}"
>
{% endblock %}
{% block additionnal_scripts %}
<script
type=
"text/javascript"
src=
"{% static 'jquery-ui-1.12.1/jquery-ui.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/datatables.min.js' %}"
></script>
{% endblock %}
{% block content %}
<div
class=
"page_body"
>
<div
id=
"back_to_admin_index"
>
<button
type=
"button"
class=
"btn--danger"
><i
class=
"fas fa-arrow-left"
></i>
Retour
</button>
</div>
<div
class=
"login_area"
>
{% include "common/conn_admin.html" %}
</div>
<div
class=
"header txtcenter"
>
<h1>
Gestion des Binômes
</h1>
</div>
<div
class=
"page_content"
>
<div
id=
"search_member_area"
>
<div
id=
"search_member_form_area"
>
<h4>
Rechercher le.a coopérateur.ice attaché.e au binôme
</h4>
<form
id=
"search_member_form"
action=
"javascript:;"
method=
"post"
>
<input
type=
"text"
id=
"search_member_input"
value=
""
placeholder=
"Nom ou numéro du coop..."
required
>
<button
type=
"submit"
class=
"btn--primary"
id=
"search_member_button"
>
Recherche
</button>
</form>
</div>
</div>
<div
class=
"search_member_results_area"
style=
"display:none;"
>
<div
class=
"search_results_text"
>
<p><i>
Choisissez parmi les membres trouvés :
</i></p>
</div>
<div
class=
"search_member_results"
></div>
</div>
</div>
</div>
</div>
<script
src=
'{% static "js/all_common.js" %}?v='
></script>
<script
src=
'{% static "js/admin/manage_attached.js" %}?v='
></script>
{% endblock %}
\ No newline at end of file
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