diff --git a/app/views/spree/admin/users/index.html.haml b/app/views/spree/admin/users/index.html.haml index 8b3633887e..e7ef05d711 100644 --- a/app/views/spree/admin/users/index.html.haml +++ b/app/views/spree/admin/users/index.html.haml @@ -6,35 +6,35 @@ = render "admin/shared/users_sub_menu" -%table#listing_users.index{"data-hook" => ""} +%table#listing_users.index %colgroup %col{ style: "width: 65%" } %col{ style: "width: 20%" } %col{ style: "width: 15%" } %thead - %tr{"data-hook" => "admin_users_index_headers"} + %tr %th= sort_link @search,:email, Spree.t(:user), {}, {title: "users_email_title"} %th= sort_link @search,:enterprise_limit, t(:enterprise_limit) - %th.actions{"data-hook" => "admin_users_index_header_actions"} + %th.actions %tbody - @users.each do |user| - # HAML seems to have a bug that it can't parse `class cycle('odd', 'even')` on the element. - # So we assign it first: - row_class = cycle("odd", "even") - %tr{id: spree_dom_id(user), "data-hook" => "admin_users_index_rows", class: row_class} + %tr{id: spree_dom_id(user), class: row_class} %td.user_email= link_to user.email, edit_object_url(user) %td.user_enterprise_limit= user.enterprise_limit - %td.actions{"data-hook" => "admin_users_index_row_actions"} + %td.actions = link_to_delete user, no_text: true = paginate @users - content_for :sidebar_title do = Spree.t(:search) - content_for :sidebar do - .box.align-center{"data-hook" => "admin_users_index_search"} + .box.align-center = search_form_for [:admin, @search] do |f| .field = f.label Spree.t(:email) %br = f.text_field :email_cont, class: "fullwidth" - %div{"data-hook" => "admin_users_index_search_buttons"} + %div = button Spree.t(:search), "icon-search"