diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:33:11 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:33:11 +0200 |
| commit | 8eab68f2c5a3c126e2fec2ecdfa7ace87ce0937b (patch) | |
| tree | f446ebc26a7707c7b64a937aa51a155df146c80a /app/views/users/edit.html.erb | |
| parent | 42714c697273a7117c6b355fab26c8c35e336ad1 (diff) | |
| parent | cdf5d9941ca866d437612d2f863eac6eb0b3db12 (diff) | |
Merge branch 'erdgeist-revive-events'
Diffstat (limited to 'app/views/users/edit.html.erb')
| -rw-r--r-- | app/views/users/edit.html.erb | 54 |
1 files changed, 24 insertions, 30 deletions
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index df1005b..77b33c6 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb | |||
| @@ -2,38 +2,32 @@ | |||
| 2 | 2 | ||
| 3 | <% if @user.errors.any? %> | 3 | <% if @user.errors.any? %> |
| 4 | <div class="error_messages"> | 4 | <div class="error_messages"> |
| 5 | <ul><% @user.errors.full_messages.each do |msg| %><li><%= msg.gsub("Slug", "Title") %></li><% end %></ul> | 5 | <ul><% @user.errors.full_messages.each do |msg| %><li><%= msg %></li><% end %></ul> |
| 6 | </div> | 6 | </div> |
| 7 | <% end %> | 7 | <% end %> |
| 8 | 8 | ||
| 9 | <div id="page_editor"> | ||
| 10 | <%= form_for @user do |f| %> | ||
| 11 | <div id="content"> | ||
| 12 | <div class="node_description">Login</div> | ||
| 13 | <div class="node_content"><%= f.text_field :login %></div> | ||
| 9 | 14 | ||
| 10 | <%= form_for @user do |f| %> | 15 | <div class="node_description">E-Mail</div> |
| 11 | <table id="new_node"> | 16 | <div class="node_content"><%= f.text_field :email %></div> |
| 12 | <tr> | 17 | |
| 13 | <td class="description">Login</td> | 18 | <div class="node_description">Password</div> |
| 14 | <td><%= f.text_field :login %></td> | 19 | <div class="node_content"><%= f.password_field :password %></div> |
| 15 | </tr> | 20 | |
| 16 | <tr> | 21 | <div class="node_description">Confirm</div> |
| 17 | <td class="description">E-Mail</td> | 22 | <div class="node_content"><%= f.password_field :password_confirmation %></div> |
| 18 | <td><%= f.text_field :email %></td> | 23 | |
| 19 | </tr> | 24 | <% if current_user.admin? %> |
| 20 | <tr> | 25 | <div class="node_description">Admin?</div> |
| 21 | <td class="description">Password</td> | 26 | <div class="node_content"><%= f.check_box :admin %></div> |
| 22 | <td><%= f.password_field :password %></td> | 27 | <% end %> |
| 23 | </tr> | 28 | |
| 24 | <tr> | 29 | <div class="node_description"></div> |
| 25 | <td class="description">Confirm</td> | 30 | <div class="node_content"><%= f.submit "Update" %></div> |
| 26 | <td><%= f.password_field :password_confirmation %></td> | ||
| 27 | </tr> | ||
| 28 | <% if current_user.admin? %> | ||
| 29 | <tr> | ||
| 30 | <td class="description">Admin?</td> | ||
| 31 | <td><%= f.check_box :admin %></td> | ||
| 32 | </tr> | ||
| 33 | <% end %> | 31 | <% end %> |
| 34 | <tr> | 32 | </div> |
| 35 | <td class="description"></td> | 33 | </div> |
| 36 | <td class="right"><%= f.submit "Update" %></td> | ||
| 37 | </tr> | ||
| 38 | </table> | ||
| 39 | <% end %> | ||
