Basic group view and permissions management on the pages

This commit is contained in:
Skia
2015-11-26 17:40:31 +01:00
parent 48e3f88b87
commit b19ec084b6
11 changed files with 119 additions and 4 deletions

View File

@ -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 %}

View File

@ -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 %}