From e0ce526a851cb4bdbbdef7d25fa0d8d1badf89e1 Mon Sep 17 00:00:00 2001 From: Gray Gilmore Date: Mon, 17 Jul 2017 15:07:47 -0700 Subject: [PATCH] Move users search form above table This allows shops a greater area to add more columns to search by as well as matches the styling to other searchable index listings. --- .../views/spree/admin/users/index.html.erb | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/backend/app/views/spree/admin/users/index.html.erb b/backend/app/views/spree/admin/users/index.html.erb index 888bcc1ebf2..dadf5a02bbb 100644 --- a/backend/app/views/spree/admin/users/index.html.erb +++ b/backend/app/views/spree/admin/users/index.html.erb @@ -1,6 +1,5 @@ <% admin_breadcrumb(plural_resource_name(Spree::LegacyUser)) %> - <% content_for :page_actions do %> <% if can?(:admin, Spree.user_class) && can?(:create, Spree.user_class) %>
  • @@ -9,10 +8,29 @@ <% end %> <% end %> +<% content_for :table_filter_title do %> + <%= Spree.t(:search) %> +<% end %> + +<% content_for :table_filter do %> +
    + <%= search_form_for [:admin, @search], url: admin_users_url do |f| %> +
    + <%= f.label :email_cont, Spree.t(:email) %> + <%= f.text_field :email_cont, class: "form-control" %> +
    + +
    + <%= button Spree.t(:search) %> +
    + <% end %> +
    +<% end %> + - - + + @@ -38,21 +56,3 @@
    <%= paginate @users, theme: "solidus_admin" %> - -<% content_for :sidebar_title do %> - <%= Spree.t(:search) %> -<% end %> - -<% content_for :sidebar do %> -
    - <%= search_form_for [:admin, @search], url: admin_users_url do |f| %> -
    - <%= f.label :email_cont, Spree.t(:email) %>
    - <%= f.text_field :email_cont, class: 'fullwidth' %> -
    -
    - <%= button Spree.t(:search) %> -
    - <% end %> -
    -<% end %>