_profile_search_form.rhtml
553 Bytes
<% form_tag( { :controller => 'profile_search', :profile => profile.identifier}, :method => 'get', :class => 'search_form' ) do %>
<div class="search-field">
<span class="formfield">
<%= text_field_tag 'q', @q, :title => _("Find %s's content") % profile.short_name %>
</span>
<%= submit_button(:search, _('Search')) %>
<div>
<%= labelled_radio_button __('on profile'), 'where', 'profile', true %>
<%= labelled_radio_button _('on %s') % environment.name, 'where', 'environment', false %>
</div>
</div>
<% end %>