diff --git a/app/views/search/_search_form.rhtml b/app/views/search/_search_form.rhtml index 728617a..f68f27a 100644 --- a/app/views/search/_search_form.rhtml +++ b/app/views/search/_search_form.rhtml @@ -1,3 +1,5 @@ +<% simple_search = false unless defined? simple_search %> + <% form_tag( { :action => 'index', :category_path => ( @category ? @category.explode_path : [] ) }, :method => 'get', :class => 'search_form' ) do %> <%= '

%s

' % form_title if defined? form_title %> @@ -13,18 +15,31 @@ <% end %> -
-

<%= _('Search for:') %>

- -
-
+
+
+

<%= _('Search within:') %>

+
+
+ <%= text_field_tag 'radius', '',:id => 'search-radius' %> + <%= text_field :region, :name, :id => 'search_region' %> +
+ <%= auto_complete_field('search_region', :url => {:action => 'complete_region'}) %> +
+
+ +
+

<%= _('Search for:') %>

+ +
+
+
<% if simple_search %> <%= link_to_function(_('Advanced search'), nil, :id => 'advanced_search_link') do |page| -- libgit2 0.21.2