app/views/spree/admin/users/index.html.erb in spree_backend-4.4.1 vs app/views/spree/admin/users/index.html.erb in spree_backend-4.5.0
- old
+ new
@@ -13,11 +13,11 @@
<% content_for :table_filter do %>
<div data-hook="admin_users_index_search">
<%= search_form_for [:admin, @search], url: spree.admin_users_url do |f| %>
<div class="form-group">
<%= f.label :email_cont, Spree.t(:email) %>
- <%= f.text_field :email_cont, class: "form-control js-quick-search-target js-filterable" %>
+ <%= f.email_field :email_cont, class: "form-control js-quick-search-target js-filterable" %>
</div>
<div class="row">
<div class="col-12 col-lg-6">
<div class="form-group">
<%= f.label :bill_address_firstname_cont, Spree.t(:first_name) %>
@@ -43,13 +43,13 @@
<% end %>
</div>
<% end %>
<% if @users.any? %>
- <div class="table-responsive">
+ <div class="table-responsive border rounded bg-white">
<table class="table" id="listing_users" data-hook>
- <thead>
+ <thead class="text-muted">
<tr data-hook="admin_users_index_headers">
<th>
<%= sort_link @search,:email, Spree.t(:user), {}, {title: 'users_email_title'} %>
</th>
<th data-hook="admin_users_index_header_actions" class="actions"></th>
@@ -69,10 +69,10 @@
<% end %>
</tbody>
</table>
</div>
<% else %>
- <div class="alert alert-info no-objects-found">
+ <div class="text-center no-objects-found m-5">
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree.user_class)) %>,
<%= link_to Spree.t(:add_one), new_object_url %>!
</div>
<% end %>