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
25f1d0ad
Commit
25f1d0ad
authored
Feb 28, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url delete and create added
parent
6c4a0d02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
30 deletions
+36
-30
admin.py
members/admin.py
+3
-3
bdm_index.js
members/static/js/admin/bdm_index.js
+4
-0
urls.py
members/urls.py
+2
-2
manage_attached.html
templates/members/admin/manage_attached.html
+27
-25
No files found.
members/admin.py
View file @
25f1d0ad
...
...
@@ -327,21 +327,21 @@ def manage_shift_registrations(request):
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
manage_attached
(
request
):
""" Administration des
services d
es membres """
""" Administration des
binôm
es membres """
template
=
loader
.
get_template
(
'members/admin/manage_attached.html'
)
context
=
{
'title'
:
'BDM - Binômes'
,
'module'
:
'Membres'
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
manage_attached_create
(
request
):
""" Administration des
services d
es membres """
""" Administration des
binôm
es 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 d
es membres """
""" Administration des
binôm
es membres """
template
=
loader
.
get_template
(
'members/admin/manage_attached_delete.html'
)
context
=
{
'title'
:
'BDM - Binômes'
,
'module'
:
'Membres'
}
...
...
members/static/js/admin/bdm_index.js
View file @
25f1d0ad
...
...
@@ -13,6 +13,10 @@ $(document).ready(function() {
window
.
location
.
assign
(
location
+
"/manage_shift_registrations"
);
}
else
if
(
this
.
id
==
'manage_attached_button'
)
{
window
.
location
.
assign
(
location
+
"/manage_attached"
);
}
else
if
(
this
.
id
==
'manage_attached_delete_button'
)
{
window
.
location
.
assign
(
location
+
"/delete"
);
}
else
if
(
this
.
id
==
'manage_attached_create_button'
)
{
window
.
location
.
assign
(
location
+
"/create"
);
}
else
if
(
this
.
id
==
'manage_leaves_button'
)
{
console
.
log
(
'coming soon...'
);
}
...
...
members/urls.py
View file @
25f1d0ad
...
...
@@ -58,8 +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'^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 @
25f1d0ad
...
...
@@ -9,36 +9,36 @@
{% 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>
<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
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
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
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
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_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">
...
...
@@ -53,9 +53,10 @@
</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>
<script
src=
'{% static "js/admin/bdm_index.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