% content_for "optionals" do %>
<%= t 'site.search.search' %>
<%= t 'site.search.where_am_i' %>
<% form_remote_tag(:before => "setSearchViewbox()", :loading => "startSearch()", :complete => "endSearch()", :url => { :controller => :geocoder, :action => :search }, :html => { :method => "get", :action => url_for(:action => "index") }) do %> <%= text_field_tag :query, h(params[:query]) %> <% if params[:action] == 'index' %> <%= hidden_field_tag :minlon %> <%= hidden_field_tag :minlat %> <%= hidden_field_tag :maxlon %> <%= hidden_field_tag :maxlat %> <% end %> <%= submit_tag t('site.search.submit_text') %> <% end %>
<%= t 'site.search.search_help' %>
<% end %>