Commit 25f1d0ad by Félicie

url delete and create added

parent 6c4a0d02
......@@ -327,21 +327,21 @@ def manage_shift_registrations(request):
return HttpResponse(template.render(context, request))
def manage_attached(request):
""" Administration des services des membres """
""" Administration des binômes 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 des membres """
""" Administration des binômes 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 """
""" Administration des binômes membres """
template = loader.get_template('members/admin/manage_attached_delete.html')
context = {'title': 'BDM - Binômes',
'module': 'Membres'}
......
......@@ -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...');
}
......
......@@ -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),
......
......@@ -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>&nbsp; Retour</button>
<div id="back_to_admin_index">
<button type="button" class="btn--danger"><i class="fas fa-arrow-left"></i>&nbsp; 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment