Sha256: 1417e27db24057015eb13fb666cc5e6c322077fed5cee4be0cf1f4305c237304

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

<% content_for :page_title do %>
  <%= t(:listing_users) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to t(:new_user), new_object_url, :icon => 'icon-plus', :id => 'admin_new_user_link' %>
  </li>
<% end %>

<table class="index" id="listing_users" data-hook>
  <colgroup>
    <col style="width: 85%">
    <col style="width: 15%">
  </colgroup>
  <thead>
    <tr data-hook="admin_users_index_headers">
      <th><%= sort_link @search,:email, t(:user), {}, {:title => 'users_email_title'} %></th>
      <th data-hook="admin_users_index_header_actions" class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @users.each do |user|%>
      <tr id="<%= spree_dom_id user %>" data-hook="admin_users_index_rows" class="<%= cycle('odd', 'even')%>">
        <td class='user_email'><%=link_to user.email, object_url(user) %></td>
        <td data-hook="admin_users_index_row_actions" class="actions">
          <%= link_to_edit user, :no_text => true %>
          <%= link_to_delete user, :no_text => true %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= paginate @users %>

<% content_for :sidebar_title do %>
  <%= t(:search) %>
<% end %>

<% content_for :sidebar do %>
  <div class="box align-center" data-hook="admin_users_index_search">    
    <%= search_form_for [:admin, @search] do |f| %>
      <div class="field">
        <%= f.label t(:email) %> <br>
        <%= f.text_field :email_cont, :class => 'fullwidth' %>
      </div>
      <div data-hook="admin_users_index_search_buttons">
        <%= button t(:search), 'icon-search' %>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/views/spree/admin/users/index.html.erb
spree_core-1.3.4 app/views/spree/admin/users/index.html.erb
spree_core-1.3.3 app/views/spree/admin/users/index.html.erb
spree_auth_devise-1.3.1 app/views/spree/admin/users/index.html.erb