maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH 1/2] Modifying some fields into the main page's


From: Pierre Mauduit
Subject: [Maposmatic-dev] [PATCH 1/2] Modifying some fields into the main page's HTML form.
Date: Sun, 20 Dec 2009 23:06:47 +0100

From: Pierre Mauduit <address@hidden>

(Removing field administrative_table, adding administrative_osmid)
---
 www/maposmatic/views.py             |    3 ++-
 www/templates/maposmatic/index.html |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/www/maposmatic/views.py b/www/maposmatic/views.py
index 4e522e4..5723ed0 100644
--- a/www/maposmatic/views.py
+++ b/www/maposmatic/views.py
@@ -86,7 +86,8 @@ class MapRenderingJobForm(ModelForm):
     class Meta:
         model = MapRenderingJob
         fields = ('maptitle', 'administrative_city', 'lat_upper_left',
-                  'lon_upper_left', 'lat_bottom_right', 'lon_bottom_right')
+                  'lon_upper_left', 'lat_bottom_right', 'lon_bottom_right',
+                  'administrative_osmid')
 
     modes = (('admin', _('Administrative boundary')),
              ('bbox', _('Bounding box')))
diff --git a/www/templates/maposmatic/index.html 
b/www/templates/maposmatic/index.html
index 41e0a77..ab09adb 100644
--- a/www/templates/maposmatic/index.html
+++ b/www/templates/maposmatic/index.html
@@ -165,6 +165,7 @@ maps.{% endblocktrans %}</p>
     <tr class="bybbox label"><td>{% trans "Title of the map:" %}</td></tr>
     <tr class="bybbox field"><td>
         {{ form.maptitle }}
+       {{ form.administrative_osmid }}
         {{ form.maptitle.errors }}
     </td></tr>
 
-- 
1.6.5.7





reply via email to

[Prev in Thread] Current Thread [Next in Thread]