diff options
Diffstat (limited to 'chimere/main/widgets.py')
-rw-r--r-- | chimere/main/widgets.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chimere/main/widgets.py b/chimere/main/widgets.py index 06c75c6..caac0ea 100644 --- a/chimere/main/widgets.py +++ b/chimere/main/widgets.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2008 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2008-2011 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as @@ -212,6 +212,9 @@ initFeature(geometry);""" % val.json tpl += """ // --></script> """ + tpl += u'<a href="#" class="add-button" '\ + u'onclick="open_window(\'%supload_file\');">%s</a>' % ( + settings.BASE_URL, _(u"Upload a route file (GPX or KML)")) return mark_safe(tpl) class RouteField(models.LineStringField): |