diff options
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 |