Commit b1aa8945 authored by chirac's avatar chirac
Browse files

Supprime et répare la vue pour retirer des droits

parent 0852e418
<form class="form" method="post">
{% csrf_token %}
{% bootstrap_form right_list %}
{% bootstrap_button "Créer ou modifier" button_type="submit" icon="star" %}
</form>
{% extends "users/sidebar.html" %}
{% load bootstrap3 %}
{% block title %}Utilisateurs{% endblock %}
{% block content %}
<h2>Droits</h2>
{% include "users/aff_rights.html" %}
<br />
<br />
<br />
{% endblock %}
......@@ -151,7 +151,7 @@ def del_right(request):
right_del.delete()
messages.success(request, "Droit retiré avec succès")
return redirect("/users/")
return form({'user_right_list': user_right_list}, 'users/index_rights.html', request)
return form({'userform': user_right_list}, 'users/user.html', request)
@login_required
@permission_required('bureau')
......
Supports Markdown
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