summaryrefslogtreecommitdiffstats
path: root/templates/group.html
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-09-04 16:12:41 +0000
committerpad <pad@vm-pad-b.spline.inf.fu-berlin.de>2013-09-04 16:12:41 +0000
commitb0b3c4b9c60f414b5ab0ea916791edb07e6fffc4 (patch)
tree9493ea4e06c5ce15b587baf765867960b71515af /templates/group.html
parenta6624cda1ad4d31d98a18a258ed65899119aff56 (diff)
downloadpadlite-teams-b0b3c4b9c60f414b5ab0ea916791edb07e6fffc4.tar.gz
padlite-teams-b0b3c4b9c60f414b5ab0ea916791edb07e6fffc4.tar.bz2
padlite-teams-b0b3c4b9c60f414b5ab0ea916791edb07e6fffc4.zip
add ability to delete groups
Diffstat (limited to 'templates/group.html')
-rw-r--r--templates/group.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/group.html b/templates/group.html
index b1697e8..98c43c0 100644
--- a/templates/group.html
+++ b/templates/group.html
@@ -1,4 +1,5 @@
{% extends "layout.html" %}
+{% from "_formhelpers.html" import render_field %}
{% block head %}Group: {{group}}{% endblock %}
@@ -14,4 +15,23 @@
{% endfor %}
</ul>
</div>
+
+<div class="panel panel-default">
+ <div class="panel-heading">
+ <h3 class="panel-title">Delete this group</h3>
+ </div>
+
+ <div class="panel-body">
+ <form class="form-horizontal" role="form" method="POST">
+ {% for field in delete_form %}
+ {{ render_field(field) }}
+ {% endfor %}
+ <div class="form-group">
+ <div class="col-lg-offset-2 col-lg-8">
+ <button type="submit" class="btn btn-danger btn-block">Delete this group</button>
+ </div>
+ </div>
+ </form>
+ </div>
+</div>
{% endblock %}