summaryrefslogtreecommitdiff
path: root/app/views/users/index.html.erb
blob: 4f5266d864f159cdeead2397566828882e54ce05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<h1>Admins</h1>
<%= link_to new_user_path(admin: true), class: 'action_button' do %>
  <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create admin user
<% end %>
<table class="user_table">
  <tr class="header">
    <th>Login</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <%= render :partial => "user", :locals => {:users => @users[:admin] ||= []} %>
</table>

<h1>Users</h1>
<%= link_to new_user_path, class: 'action_button' do %>
  <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create user
<% end %>
<table class="user_table">
  <tr class="header">
    <th>Login</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <%= render :partial => "user", :locals => {:users => @users[:user] ||= []} %>
</table>