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
92de2a08
Commit
92de2a08
authored
Feb 23, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url and page added
parent
260e86a9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
5 deletions
+36
-5
admin.py
members/admin.py
+7
-0
bdm_index.js
members/static/js/admin/bdm_index.js
+2
-2
urls.py
members/urls.py
+1
-0
datatables.responsive.min.js
outils/static/js/datatables/datatables.responsive.min.js
+0
-0
index.html
templates/members/admin/index.html
+2
-3
manage_attached.html
templates/members/admin/manage_attached.html
+24
-0
No files found.
members/admin.py
View file @
92de2a08
...
...
@@ -326,6 +326,13 @@ def manage_shift_registrations(request):
'module'
:
'Membres'
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
manage_attached
(
request
):
""" Administration des services des membres """
template
=
loader
.
get_template
(
'members/admin/manage_attached.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/static/js/admin/bdm_index.js
View file @
92de2a08
...
...
@@ -9,10 +9,10 @@ $(document).ready(function() {
$
(
'.management_type_button'
).
on
(
'click'
,
function
()
{
if
(
this
.
id
==
'manage_makeups_button'
)
{
window
.
location
.
assign
(
location
+
"/manage_makeups"
);
}
else
if
(
this
.
id
==
'manage_attached_button'
)
{
console
.
log
(
'coming soon...'
);
}
else
if
(
this
.
id
==
'manage_shift_registrations_button'
)
{
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_leaves_button'
)
{
console
.
log
(
'coming soon...'
);
}
...
...
members/urls.py
View file @
92de2a08
...
...
@@ -57,6 +57,7 @@ urlpatterns = [
url
(
r'^admin$'
,
admin
.
admin
),
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'^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
),
...
...
outils/static/js/datatables/datatables.responsive.min.js
View file @
92de2a08
This diff is collapsed.
Click to expand it.
templates/members/admin/index.html
View file @
92de2a08
...
...
@@ -29,10 +29,9 @@
Gestion des présences
<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_button"
disabled
>
<button
type=
"button"
class=
"btn--primary management_type_button"
id=
"manage_attached_button"
>
Gestion des binômes
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-wrench"
></i></span>
{#
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-arrow-right"
></i></span>
#}
<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_leaves_button"
disabled
>
Gestion des congés
...
...
templates/members/admin/manage_attached.html
0 → 100644
View file @
92de2a08
{% 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"
>
BONJOUR MONDE
</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