Sha256: 2cc65469f8996e3578bd6dacb8de1bca5d1a255f7de16753fc05c7e917482c72
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
<%= render 'admin/headers/index', records: @users, model_name: 'User' %> <div class="table-responsive"> <table class="forest-table table table-striped"> <thead> <tr> <th><%= table_sorter title: 'ID', path: :admin_users_path, scope: :by_id, default_order: :desc %></th> <th><%= table_sorter title: 'Email', path: :admin_users_path, scope: :by_email, default_order: :asc %></th> <th><%= table_sorter title: 'Last name', path: :admin_users_path, scope: :by_last_name, default_order: :asc %></th> <th><%= table_sorter title: 'First name', path: :admin_users_path, scope: :by_first_name, default_order: :asc %></th> <th>User groups</th> <th><%= table_sorter title: 'Created at'.html_safe, path: :admin_users_path, scope: :by_created_at, default_order: :desc %></th> <th colspan="3"></th> </tr> </thead> <tbody> <% @users.each do |user| %> <tr> <td><%= user.id %></td> <td><%= user.email %></td> <td><%= user.last_name %></td> <td><%= user.first_name %></td> <td><%= user.user_groups.collect(&:display_name).join(', ') %></td> <td><%= forest_date user.created_at %></td> <td width="1"><%= link_to 'Edit', edit_admin_user_path(user), class: 'btn btn-xs btn-primary', role: 'button' %></td> <td width="1"><%= link_to 'Show', [:admin, user], class: 'btn btn-xs btn-info', role: 'button', data: { turbolinks: false } %></td> <td width="1"><%= link_to 'Destroy', [:admin, user], method: :delete, class: 'btn btn-xs btn-danger', role: 'button', data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </tbody> </table> </div> <%= paginate @users %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forest_cms-0.98.1 | app/views/admin/users/index.html.erb |