summaryrefslogtreecommitdiff
path: root/src/templates/edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/edit.html')
-rw-r--r--src/templates/edit.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/templates/edit.html b/src/templates/edit.html
index f896a52..709be53 100644
--- a/src/templates/edit.html
+++ b/src/templates/edit.html
@@ -1,32 +1,32 @@
{% extends "base.html" %}
+{% load prefix %}
{% 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>
+{% 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='{% prefix %}'" value="Cancel"/>
+ </div>
+</form>
{% endblock %} \ No newline at end of file