diff options
Diffstat (limited to 'app/views/users/index.html.erb')
| -rw-r--r-- | app/views/users/index.html.erb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 2936bbea..71102c2c 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | <h1><%= t(".title") %></h1> | 1 | <%= render "shared/page_actions", |
| 2 | 2 | :title => t(".title"), | |
| 3 | <p class="button_row"> | 3 | :icon_name => "user-plus", |
| 4 | <% UsersController::ROLE_PRESETS.each_key do |preset| %> | 4 | :label => t(".create_account"), |
| 5 | <%= link_to new_user_path(:preset => preset), class: 'action_button' do %> | 5 | :options => UsersController::ROLE_PRESETS.each_key.map { |preset| |
| 6 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> | 6 | [t(".create_#{preset}"), new_user_path(:preset => preset)] }, |
| 7 | <%= t(".create_#{preset}") %> | 7 | :hint => t(".admin_hint") %> |
| 8 | <% end %> | ||
| 9 | <% end %> | ||
| 10 | </p> | ||
| 11 | <p class="field_hint"><%= t(".admin_hint") %></p> | ||
| 12 | 8 | ||
| 13 | <% UsersController::GROUP_ORDER.each do |group| %> | 9 | <% UsersController::GROUP_ORDER.each do |group| %> |
| 14 | <% members = @users[group] || [] %> | 10 | <% members = @users[group] || [] %> |
