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
9b1c76db
Commit
9b1c76db
authored
Mar 09, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
button added
parent
ec8cbb5a
Pipeline
#1884
passed with stage
in 1 minute 30 seconds
Changes
7
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
4 deletions
+34
-4
admin.py
members/admin.py
+7
-0
manage_regular_shifts.css
members/static/css/admin/manage_regular_shifts.css
+0
-0
bdm_index.js
members/static/js/admin/bdm_index.js
+1
-1
manage_regular_shifts.js
members/static/js/admin/manage_regular_shifts.js
+0
-0
urls.py
members/urls.py
+1
-0
index.html
templates/members/admin/index.html
+2
-3
manage_regular_shifts.html
templates/members/admin/manage_regular_shifts.html
+23
-0
No files found.
members/admin.py
View file @
9b1c76db
...
@@ -326,6 +326,13 @@ def manage_shift_registrations(request):
...
@@ -326,6 +326,13 @@ def manage_shift_registrations(request):
'module'
:
'Membres'
}
'module'
:
'Membres'
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
manage_regular_shifts
(
request
):
""" Administration des créneaux des membres """
template
=
loader
.
get_template
(
'members/admin/manage_regular_shifts.html'
)
context
=
{
'title'
:
'BDM - Créneaux'
,
'module'
:
'Membres'
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
get_makeups_members
(
request
):
def
get_makeups_members
(
request
):
""" Récupération des membres qui doivent faire des rattrapages """
""" Récupération des membres qui doivent faire des rattrapages """
res
=
CagetteMembers
.
get_makeups_members
()
res
=
CagetteMembers
.
get_makeups_members
()
...
...
members/static/css/admin/manage_regular_shifts.css
0 → 100644
View file @
9b1c76db
members/static/js/admin/bdm_index.js
View file @
9b1c76db
...
@@ -16,7 +16,7 @@ $(document).ready(function() {
...
@@ -16,7 +16,7 @@ $(document).ready(function() {
}
else
if
(
this
.
id
==
'manage_leaves_button'
)
{
}
else
if
(
this
.
id
==
'manage_leaves_button'
)
{
console
.
log
(
'coming soon...'
);
console
.
log
(
'coming soon...'
);
}
else
if
(
this
.
id
==
'manage_regular_shifts_button'
)
{
}
else
if
(
this
.
id
==
'manage_regular_shifts_button'
)
{
console
.
log
(
'coming soon...'
);
window
.
location
.
assign
(
location
+
"/manage_regular_shifts"
);
}
}
});
});
}
else
{
}
else
{
...
...
members/static/js/admin/manage_regular_shifts.js
0 → 100644
View file @
9b1c76db
members/urls.py
View file @
9b1c76db
...
@@ -57,6 +57,7 @@ urlpatterns = [
...
@@ -57,6 +57,7 @@ urlpatterns = [
url
(
r'^admin/?$'
,
admin
.
admin
),
url
(
r'^admin/?$'
,
admin
.
admin
),
url
(
r'^admin/manage_makeups$'
,
admin
.
manage_makeups
),
url
(
r'^admin/manage_makeups$'
,
admin
.
manage_makeups
),
url
(
r'^admin/manage_shift_registrations$'
,
admin
.
manage_shift_registrations
),
url
(
r'^admin/manage_shift_registrations$'
,
admin
.
manage_shift_registrations
),
url
(
r'^admin/manage_regular_shifts$'
,
admin
.
manage_regular_shifts
),
url
(
r'^get_makeups_members$'
,
admin
.
get_makeups_members
),
url
(
r'^get_makeups_members$'
,
admin
.
get_makeups_members
),
url
(
r'^update_members_makeups$'
,
admin
.
update_members_makeups
),
url
(
r'^update_members_makeups$'
,
admin
.
update_members_makeups
),
url
(
r'^delete_shift_registration$'
,
admin
.
delete_shift_registration
),
url
(
r'^delete_shift_registration$'
,
admin
.
delete_shift_registration
),
...
...
templates/members/admin/index.html
View file @
9b1c76db
...
@@ -39,10 +39,9 @@
...
@@ -39,10 +39,9 @@
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-wrench"
></i></span>
<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><br>
<button
type=
"button"
class=
"btn--primary management_type_button"
id=
"manage_regular_shifts_button"
disabled
>
<button
type=
"button"
class=
"btn--primary management_type_button"
id=
"manage_regular_shifts_button"
>
Gestion des créneaux
Gestion des créneaux
<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><br>
</div>
</div>
</div>
</div>
...
...
templates/members/admin/manage_regular_shifts.html
0 → 100644
View file @
9b1c76db
{% 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_regular_shifts.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 %}
<p>
Hello
</p>
<script
src=
'{% static "js/all_common.js" %}?v='
></script>
<script
src=
'{% static "js/admin/manage_regular_shifts.js" %}?v='
></script>
{% endblock %}
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