summaryrefslogtreecommitdiffstats
path: root/templates/pad_change.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pad_change.html')
-rw-r--r--templates/pad_change.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/pad_change.html b/templates/pad_change.html
new file mode 100644
index 0000000..dd8e7d2
--- /dev/null
+++ b/templates/pad_change.html
@@ -0,0 +1,33 @@
+{% extends "layout.html" %}
+{% from "_formhelpers.html" import render_field %}
+
+{% block head %}Group: {{group}}{% endblock %}
+
+{% block content %}
+<div class="panel panel-default">
+ <div class="panel-heading">
+ {% if pad %}
+ <h3 class="panel-title">Edit pad: {{pad.name}}</h3>
+ {% else %}
+ <h3 class="panel-title">Create a pad</h3>
+ {% endif %}
+ </div>
+
+ <div class="panel-body">
+ <form class="form-horizontal" role="form" method="POST">
+ {% for field in change_form %}
+ {{ render_field(field) }}
+ {% endfor %}
+ <div class="form-group">
+ <div class="col-lg-10 col-lg-offset-2">
+ {% if pad %}
+ <button type="submit" class="btn btn-primary">Save pad</button>
+ {% else %}
+ <button type="submit" class="btn btn-primary">Create pad</button>
+ {% endif %}
+ </div>
+ </div>
+ </form>
+ </div>
+</div>
+{% endblock %}