summaryrefslogtreecommitdiff
path: root/src/templates/edit.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-09 13:16:52 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-09 13:16:52 +0100
commitf3947d0fb2dcf2abb1f5a200df183b84716e7275 (patch)
tree031ffb4bea84b37c476091aee00d2a776cd4cf8e /src/templates/edit.html
parent5ce8e3bad52f0a1a4b2bfb121495b0b3504a31ac (diff)
more prefix
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