Sha256: 204d155d0f10ea851adab13244c79ee18da246e0b5de74b90a7c03cb1443b9b5

Contents?: true

Size: 1.71 KB

Versions: 4

Compression:

Stored size: 1.71 KB

Contents

<%= toolbar(
  buttons: [
    {
      icon: 'user_add',
      label: _t(:create_user),
      url: alchemy.new_admin_user_path,
      title: _t(:create_user),
      hotkey: 'alt+n',
      dialog_options: {
        title: _t(:create_user),
        size: "430x560"
      },
      if_permitted_to: [:create, Alchemy::User]
    }
  ]
) %>

<div id="archive_all" class="resources-table-wrapper">
  <%= resources_header %>
<% if @users.any? %>

  <table class="list" id="user_list">
    <thead>
      <tr>
        <th class="icon"></th>
        <th class="login_status"></th>
        <th class="login">
          <%= sortable_column(Alchemy::User.human_attribute_name('login'), column: :login) %>
        </th>
        <th class="name">
          <%= sortable_column(Alchemy::User.human_attribute_name('firstname'), column: :firstname) %>
        </th>
        <th>
          <%= sortable_column(Alchemy::User.human_attribute_name('lastname'), column: :lastname) %>
        </th>
        <th class="email">
          <%= sortable_column(Alchemy::User.human_attribute_name('email'), column: :email) %>
        </th>
        <th><%= Alchemy::User.human_attribute_name('language') %></th>
        <th>
          <%= sortable_column(Alchemy::User.human_attribute_name('last_sign_in_at'), column: :last_sign_in_at) %>
        </th>
        <th class="role"><%= Alchemy::User.human_attribute_name('roles') %></th>
        <th class="tools"></th>
      </tr>
    </thead>
    <tbody>
      <%= render partial: 'alchemy/admin/users/user', collection: @users %>
    </tbody>
  </table>

  <%= paginate @users, theme: 'alchemy' %>

<% elsif params[:query] %>

  <div class="info">
    <%= render_icon('info') %>
    <%= _t('No users found') %>
  </div>

<% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alchemy-devise-3.2.0 app/views/alchemy/admin/users/index.html.erb
alchemy-devise-2.1.0 app/views/alchemy/admin/users/index.html.erb
alchemy-devise-2.1.0.beta3 app/views/alchemy/admin/users/index.html.erb
alchemy-devise-2.1.0.beta2 app/views/alchemy/admin/users/index.html.erb