diff options
author | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:06:55 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:06:55 +0100 |
commit | c33af4c971f26fcf3e7eb61a6c3dd8e8af8418a6 (patch) | |
tree | 8cbdeaeb48e3bfb5f4dd7d3ab190f8b8be634479 /src/templates/edit.html | |
parent | 5f6b0000b9f611c56f42ff37f32003325c410947 (diff) |
restructure
Diffstat (limited to 'src/templates/edit.html')
-rw-r--r-- | src/templates/edit.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/templates/edit.html b/src/templates/edit.html new file mode 100644 index 0000000..f896a52 --- /dev/null +++ b/src/templates/edit.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% block content %} + {% block beforeform %} + {% endblock %} + <form method="POST"> + <div class="ui-widget-content ui-corner-all infopanel"> + <h1>{{formtitle}}</h1> + <table class="formtable"> + {% for field in form %} + <tr style="padding-top: 10px;"> + <td> + {% if not field.is_hidden %} + <div class="ui-widget fieldlabel">{{ field.label_tag }}</div> + {% endif %} + {% if field.errors %} + <div class="ui-widget ui-state-error">{{ field.errors }}</div> + {% endif %} + </td> + <td> + <div class="ui-widget">{{ field }}</div> + </td> + </tr> + {% endfor %} + </table> + </div> + <br/> + <div class="button"> + <input type="submit" value="{{submitname}}" /> + <input type="button" onClick="document.location='/'" value="Cancel"/> + </div> + </form> +{% endblock %}
\ No newline at end of file |