Sha256: c49077b689d2d795c25573e4329fb0e1d8043fb8e6511a0d4471c6029f9881ec

Contents?: true

Size: 1.55 KB

Versions: 9

Compression:

Stored size: 1.55 KB

Contents

<div class='toolbar'>
  <ul class='actions'>
    <li>
      <p><%= button_link_to t("new_user"), new_object_url, :icon => 'add' %></p>
    </li>
  </ul>
  <br class='clear' />
</div>


<h1><%= t("listing_users") %></h1>


<table class="index">
  <thead>
  <tr>
    <%= hook :admin_users_index_headers do %>
      <th><%= order @search, :by => :email, :as => t("user") %></th>
      <th>
        <%= hook :admin_users_index_header_actions %>
      </th>
    <% end %>
  </tr>
  </thead>
  <tbody>
    <% @users.each do |user|%>
      <tr id="<%= dom_id user %>">
        <%- locals = {:user => user} %>
        <%= hook :admin_users_index_rows, locals do %>
          <td width="350px"><%=link_to user.email, object_url(user) %></td>
        <% end %>
        <td>
          <%= hook :admin_users_index_row_actions, locals do %>
            <%= link_to_edit user %> &nbsp;
            <%= link_to_delete user %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate(:previous_label => "&#171; #{t('previous')}", :next_label => "#{t('next')} &#187;") %>


<% content_for :sidebar do %>
  <div class="box">
    <h3><%= t(:search) %></h3>
    <%= form_for @search do |f| %>
      <%- locals = {:f => f} %>
      <%= hook :admin_users_index_search, locals do %>
        <p>
          <%= t("email") %><br />
          <%= f.text_field :email_contains, :size=>18 %>
        </p>
      <% end %>
      <%= hook :admin_users_index_search_buttons, locals do %>
        <p><%= button t("search") %></p>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/admin/users/index.html.erb
spree_core-0.40.4 app/views/admin/users/index.html.erb
spree_core-0.40.3 app/views/admin/users/index.html.erb
spree_core-0.40.2 app/views/admin/users/index.html.erb
spree_core-0.40.1 app/views/admin/users/index.html.erb
spree_core-0.40.0 app/views/admin/users/index.html.erb
spree_core-0.30.1 app/views/admin/users/index.html.erb
spree_core-0.30.0 app/views/admin/users/index.html.erb
spree_core-0.30.0.beta1 app/views/admin/users/index.html.erb