diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:39:08 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:39:08 +0200 |
commit | 2bdad0ae7a3a6e4ec5116becd39910388b679ed2 (patch) | |
tree | 5afdfba0a93c1af50d53bdc245d57cc4053e109a /templates/edit.html | |
parent | 873e7823970352d591deee5f67f47c5436ee0e84 (diff) |
restructure
Diffstat (limited to 'templates/edit.html')
-rw-r--r-- | templates/edit.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/edit.html b/templates/edit.html new file mode 100644 index 0000000..5d04b3f --- /dev/null +++ b/templates/edit.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} +{% block content %} +{% block beforeform %}{% endblock %} +<div class="page-header"> + <h1>{{formtitle}}</h1> +</div> +<div class="well" style="width: 70%;"> + {% block justbeforeform %}{% endblock %} + <div> + <form method="POST" class="form-horizontal"> + {% block beforefields %}{% endblock %} + {% for field in form %} + {% if field.is_hidden %} + {{ field }} + {% else %} + <div class="control-group {% if field.field.required %}required{% endif %}" {{ field.row_attrs }}> + {{ field.errors }} + <label for="id_{{ field.html_name }}" class="control-label" ><em>{{ field.label }}{% if field.field.required %}<b>*</b>{% endif %}</em></label> + <div class="controls">{{ field }}</div> + </div> + {% endif %} + {% endfor %} + <div class="form-actions"> + <input type="button" class="btn" onClick="document.location='/rooms'" value="{{cancelname}}"/> + <input class="btn btn-success" type="submit" value="{{submitname}}" /> + </div> + </form> + </div> +</div> +{% endblock %}
\ No newline at end of file |