From 15961ef5b2ae30dedc4e76a85f34d07d852f0694 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Jul 2012 21:26:56 +0200 Subject: Fix route submission --- chimere/widgets.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'chimere/widgets.py') diff --git a/chimere/widgets.py b/chimere/widgets.py index ab827d8..da2bc54 100644 --- a/chimere/widgets.py +++ b/chimere/widgets.py @@ -292,9 +292,20 @@ class RouteChooserWidget(forms.TextInput): u"%s"\ u"\n"\ u"
" % (_(u"Start \"hand\" drawing")) + style = '' + if value: + style = " style='display:block'" + tpl += u"\n
%s
"\ + u"\n
\n"\ + u"\n"\ + u"\n" % ( + style, help_modify, name, name, value, routefile_id) if value: tpl += u"\n
" else: + tpl += "\n
%s
"\ + % help_create tpl += u"\n
\n"\ u"
\n"\ u" "\ u"%s
\n"\ u"
" % (_(u"Move on the map"), _(u"Draw")) - tpl += "\n
%s
"\ - % help_create - style = '' - if value: - style = " style='display:block'" - tpl += u"\n
%s
"\ - u"\n
\n"\ - u"\n"\ - u"\n" % ( - style, help_modify, name, name, value, routefile_id) tpl += u"