diff options
Diffstat (limited to 'app/views/users')
| -rw-r--r-- | app/views/users/_user.html.erb | 7 | ||||
| -rw-r--r-- | app/views/users/index.html.erb | 8 | ||||
| -rw-r--r-- | app/views/users/show.html.erb | 4 |
3 files changed, 13 insertions, 6 deletions
diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb index 798b82b3..3a88f5e2 100644 --- a/app/views/users/_user.html.erb +++ b/app/views/users/_user.html.erb | |||
| @@ -7,9 +7,10 @@ | |||
| 7 | <%= link_to "edit", edit_user_path(user) %> | 7 | <%= link_to "edit", edit_user_path(user) %> |
| 8 | </td> | 8 | </td> |
| 9 | <td> | 9 | <td> |
| 10 | <%= button_to "destroy", user_path(user), | 10 | <%= button_to user_path(user), method: :delete, |
| 11 | method: :delete, | 11 | form: { data: { confirm: "Do you really want to destroy user #{user.login}?" }, class: 'button_to destructive' } do %> |
| 12 | form: { data: { confirm: "Do you really want to delete user #{user.login}?" }, class: 'button_to destructive' } %> | 12 | <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy |
| 13 | <% end %> | ||
| 13 | </td> | 14 | </td> |
| 14 | <% end %> | 15 | <% end %> |
| 15 | </tr> | 16 | </tr> |
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 46e958bf..4f5266d8 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | <h1>Admins</h1> | 1 | <h1>Admins</h1> |
| 2 | <%= link_to 'New admin user', new_user_path(admin: true), class: 'action_button' %> | 2 | <%= link_to new_user_path(admin: true), class: 'action_button' do %> |
| 3 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create admin user | ||
| 4 | <% end %> | ||
| 3 | <table class="user_table"> | 5 | <table class="user_table"> |
| 4 | <tr class="header"> | 6 | <tr class="header"> |
| 5 | <th>Login</th> | 7 | <th>Login</th> |
| @@ -11,7 +13,9 @@ | |||
| 11 | </table> | 13 | </table> |
| 12 | 14 | ||
| 13 | <h1>Users</h1> | 15 | <h1>Users</h1> |
| 14 | <%= link_to 'New user', new_user_path, class: 'action_button' %> | 16 | <%= link_to new_user_path, class: 'action_button' do %> |
| 17 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create user | ||
| 18 | <% end %> | ||
| 15 | <table class="user_table"> | 19 | <table class="user_table"> |
| 16 | <tr class="header"> | 20 | <tr class="header"> |
| 17 | <th>Login</th> | 21 | <th>Login</th> |
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index e744efeb..70881dbd 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb | |||
| @@ -6,7 +6,9 @@ | |||
| 6 | <div class="node_content node_info_group"> | 6 | <div class="node_content node_info_group"> |
| 7 | <div class="node_info_group_items"> | 7 | <div class="node_info_group_items"> |
| 8 | <div class="node_info_item"> | 8 | <div class="node_info_item"> |
| 9 | <%= link_to 'Edit', edit_user_path(@user), class: 'action_button' %> | 9 | <%= link_to edit_user_path(@user), class: 'action_button' do %> |
| 10 | <%= icon("edit", library: "tabler", "aria-hidden": true) %> Edit | ||
| 11 | <% end %> | ||
| 10 | </div> | 12 | </div> |
| 11 | </div> | 13 | </div> |
| 12 | </div> | 14 | </div> |
