<div>
  <%= form_tag hyrax.profiles_path, method: :get, class: "form-search" do %>
    <label class="sr-only" for="user_search">Search Users</label>
    <%= text_field_tag :uq, params[:uq], class: "q", placeholder: "Search Users", size: '30', type: "search", id: "user_search" %>
    <%= hidden_field_tag :sort, params[:sort], id: 'user_sort' %>
    <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:uq, :sort, :qt, :page, :utf8)) %>
    <button type="submit" class="btn btn-primary" id="user_submit"> 
      <i class="glyphicon glyphicon-search"></i> Go
    </button>
  <% end %>
</div>

<div>
  <% # this form is used on the public users page and the admin users page, so submit to current path %>
  <%= form_tag request.path, method: :get, class: "form-search" do %>
    <label class="sr-only" for="user_search">Search Users</label>
    <%= text_field_tag :uq, params[:uq], class: "q", placeholder: "Search Users", size: '30', type: "search", id: "user_search" %>
    <%= hidden_field_tag :sort, params[:sort], id: 'user_sort' %>
    <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:uq, :sort, :qt, :page, :utf8)) %>
    <button type="submit" class="btn btn-primary" id="user_submit"> 
      <i class="glyphicon glyphicon-search"></i> Go
    </button>
  <% end %>
</div>

Make the user search form generic
Make the user search form generic

This allows it to be used for multiple controllers like
Admin::UsersController (in Hyku) as well as the UsersController.
Fixes #257
