diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/group.html | 13 | ||||
-rw-r--r-- | templates/pad_change.html | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/templates/group.html b/templates/group.html index bc08e4d..7f90c57 100644 --- a/templates/group.html +++ b/templates/group.html @@ -19,6 +19,19 @@ </div> {% if not public_view %} +<div class="panel panel-default"> + <div class="panel-heading" style="border-bottom: 0"> + <h3 class="panel-title">Pads</h3> + </div> + + {% if admin %} + <div class="panel-footer"> + <a href="{{ url_for('pad_create', group_name=group.name) }}"> + Create pad + </a> + </div> + {% endif %} +</div> <div class="panel panel-default"> <div class="panel-heading"> 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 %} |