summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-03 22:25:36 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-03 22:25:36 +0200
commit3849ce754139e8da94ddc8c773b0ed645a78f214 (patch)
tree44ab19e2f6a7fb1dfc606b8d43f406c25a1480c0
parentcf598910a83bbc67817a3c361235ed718cba6d4f (diff)
downloadIshtar-3849ce754139e8da94ddc8c773b0ed645a78f214.tar.bz2
Ishtar-3849ce754139e8da94ddc8c773b0ed645a78f214.zip
Fix SquareMeter widget (refs #1380)
* bad escaping of attributes
-rw-r--r--ishtar_common/forms.py1
-rw-r--r--ishtar_common/templates/blocks/SquareMeterWidget.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py
index bc780ef9a..e82a6e86d 100644
--- a/ishtar_common/forms.py
+++ b/ishtar_common/forms.py
@@ -50,7 +50,6 @@ class NamedUrlSessionFormWizard(forms.Form):
self.url_name = url_name
super(NamedUrlSessionFormWizard, self).__init__(self)
-
def rindex(self, idx):
return self.url_name.rindex(idx)
diff --git a/ishtar_common/templates/blocks/SquareMeterWidget.html b/ishtar_common/templates/blocks/SquareMeterWidget.html
index 4302ee234..85a9fa548 100644
--- a/ishtar_common/templates/blocks/SquareMeterWidget.html
+++ b/ishtar_common/templates/blocks/SquareMeterWidget.html
@@ -1,4 +1,4 @@
-<input class="area_widget" type="text"{{final_attrs}}> {{unit}} (<span id="ha_{{id}}">0</span> ha)
+<input class="area_widget" type="text"{{final_attrs|safe}}> {{unit}} (<span id="ha_{{id}}">0</span> ha)
<script type="text/javascript"><!--//
function evaluate_{{safe_id}}(){
value = parseFloat($("#{{id}}").val());