]> git.openstreetmap.org Git - rails.git/commitdiff
Add some help to the search box.
authorTom Hughes <tom@compton.nu>
Wed, 8 Aug 2007 08:29:31 +0000 (08:29 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 8 Aug 2007 08:29:31 +0000 (08:29 +0000)
app/views/site/_search.rhtml
public/stylesheets/site.css

index 2b2fc6e31b49b76ea76eb5bdbde8db0bf1ed3c7d..8e5a8b764a8d1cfbe5ef126115bebc0925a8aed7 100644 (file)
@@ -6,6 +6,11 @@
                        :url => { :controller => :geocoder, :action => :search } ) do %>
       <%= text_field_tag :query, nil, :size => 16 %>
     <% end %>
+    <p class="search_help">
+      examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ',
+      or 'post offices near Lünen'
+      <a href="http://wiki.openstreetmap.org/index.php/Name_finder#Searching_for_things">more examples...</a>
+    </p>
   </div>
   <script type="text/javascript">
   <!--
index 2fe7710fd416a8d38ecff7fe954de2307e8151c8..deed0d7e42dab2bb960f9c2ab41a601cac481e11 100644 (file)
@@ -441,6 +441,13 @@ hides rule from IE5-Mac \*/
   color: #f00;\r
 }\r
 \r
+.search_help {\r
+  font-size: 10px;\r
+  line-height: 1em;\r
+  margin-top: 3px;\r
+  margin-bottom: 0px;\r
+}\r
+\r
 /* rails error field stuff */\r
 \r
 .fieldWithErrors {\r