summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/_user.html.erb11
-rw-r--r--app/views/users/edit.html.erb11
-rw-r--r--app/views/users/new.html.erb11
3 files changed, 20 insertions, 13 deletions
diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb
index 8117bcd..ddb7afd 100644
--- a/app/views/users/_user.html.erb
+++ b/app/views/users/_user.html.erb
@@ -7,13 +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 <%= link_to( 10 <%= button_to "destroy", user_path(user),
11 "destroy", 11 method: :delete,
12 user_path(user), 12 form: { data: { confirm: "Do you really want to delete user #{user.login}?" } } %>
13 :method => :delete,
14 :confirm => "Do you really want to delete user #{user.login}?"
15 ) %>
16 </td> 13 </td>
17 <% end %> 14 <% end %>
18</tr> 15</tr>
19<% end %> \ No newline at end of file 16<% end %>
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb
index 226e821..df1005b 100644
--- a/app/views/users/edit.html.erb
+++ b/app/views/users/edit.html.erb
@@ -1,8 +1,13 @@
1<h1>Edit existing user</h1> 1<h1>Edit existing user</h1>
2 2
3<%= error_messages_for :user %> 3<% if @user.errors.any? %>
4 <div class="error_messages">
5 <ul><% @user.errors.full_messages.each do |msg| %><li><%= msg.gsub("Slug", "Title") %></li><% end %></ul>
6 </div>
7<% end %>
4 8
5<% form_for @user do |f| %> 9
10<%= form_for @user do |f| %>
6<table id="new_node"> 11<table id="new_node">
7 <tr> 12 <tr>
8 <td class="description">Login</td> 13 <td class="description">Login</td>
@@ -31,4 +36,4 @@
31 <td class="right"><%= f.submit "Update" %></td> 36 <td class="right"><%= f.submit "Update" %></td>
32 </tr> 37 </tr>
33</table> 38</table>
34<% end %> \ No newline at end of file 39<% end %>
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index 6990c27..6beda4f 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -1,8 +1,13 @@
1<h1>Create new user</h1> 1<h1>Create new user</h1>
2 2
3<%= error_messages_for :user %> 3<% if @user.errors.any? %>
4 <div class="error_messages">
5 <ul><% @user.errors.full_messages.each do |msg| %><li><%= msg.gsub("Slug", "Title") %></li><% end %></ul>
6 </div>
7<% end %>
4 8
5<% form_for @user do |f| %> 9
10<%= form_for @user do |f| %>
6<table id="new_node"> 11<table id="new_node">
7 <tr> 12 <tr>
8 <td class="description">Login</td> 13 <td class="description">Login</td>
@@ -29,4 +34,4 @@
29 <td class="right"><%= f.submit "Create" %></td> 34 <td class="right"><%= f.submit "Create" %></td>
30 </tr> 35 </tr>
31</table> 36</table>
32<% end %> \ No newline at end of file 37<% end %>