From e3de346bdd074e2c2f0c83daf0e6314b5990dbd6 Mon Sep 17 00:00:00 2001 From: Nick Black Date: Sat, 14 Apr 2007 14:12:27 +0000 Subject: [PATCH] geocoder stuff --- app/views/site/index.rhtml | 12 ++++++++++-- config/routes.rb | 2 +- public/stylesheets/site.css | 12 ++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index d6c2ed405..35e542699 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -1,11 +1,19 @@
- <%= start_form_tag :controller => 'way_tag', :action => 'search' %> - <%= text_field 'query', 'query'%> + <%= start_form_tag :controller => 'geocoder', :action => 'search' %> + <%= text_field 'query', 'postcode'%> + <%= text_field 'query', 'place_name'%> <%= submit_tag 'Search' %> <%= end_form_tag %> +
+eg SW15 6JH
+
+Essen +
+
+ diff --git a/config/routes.rb b/config/routes.rb index c73b8c454..9bb8aadca 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -73,6 +73,6 @@ ActionController::Routing::Routes.draw do |map| map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1 # fall through - map.connect ':controller/:id/:action' + # map.connect ':controller/:id/:action' map.connect ':controller/:action' end diff --git a/public/stylesheets/site.css b/public/stylesheets/site.css index d49b603ad..c502a59ff 100644 --- a/public/stylesheets/site.css +++ b/public/stylesheets/site.css @@ -291,6 +291,18 @@ hides rule from IE5-Mac \*/ padding-left: 14px; } +#placename-helper{ + font-size: 10px; + position:relative; bottom:36px; left: 470px; + color: gray; +} + +#postcode-helper{ + font-size: 10px; + position:relative; bottom:16px; left: 180px; + color: gray; +} + .gpxsummary { font-size: 12px; color: gray; -- 2.43.2