mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-13 22:26:01 +00:00
Basic group view and permissions management on the pages
This commit is contained in:
1 parent
48e3f88b87
commit
b19ec084b6
11 files changed
+119
-4
No files matched your search
@@ -0,0 +1,16 @@
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<p><a href="{% url 'core:group_list' %}">Back to list</a></p>
|
||||
<h2>Edit group</h2>
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<p><input type="submit" value="Update" /></p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Group list
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3>Group list</h3>
|
||||
<ul>
|
||||
{% for g in group_list %}
|
||||
<li><a href="{% url 'core:group_edit' g.id %}">{{ g.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
Reference in new issue
Block a user