summaryrefslogtreecommitdiff
path: root/app/views/users/new.html.erb
blob: 6beda4f1c29b5d5337e59634fce13360ccb4a129 (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
28
29
30
31
32
33
34
35
36
37
<h1>Create new user</h1>

<% if @user.errors.any? %>
  <div class="error_messages">
    <ul><% @user.errors.full_messages.each do |msg| %><li><%= msg.gsub("Slug", "Title") %></li><% end %></ul>
  </div>
<% end %>


<%= form_for @user do |f| %>
<table id="new_node">
  <tr>
    <td class="description">Login</td>
    <td><%= f.text_field :login %></td>
  </tr>
  <tr>
    <td class="description">E-Mail</td>
    <td><%= f.text_field :email %></td>
  </tr>
  <tr>
    <td class="description">Password</td>
    <td><%= f.password_field :password %></td>
  </tr>
  <tr>
    <td class="description">Confirm</td>
    <td><%= f.password_field :password_confirmation %></td>
  </tr>
  <tr>
    <td class="description">Admin?</td>
    <td><%= f.check_box :admin %></td>
  </tr>
  <tr>
    <td class="description"></td>
    <td class="right"><%= f.submit "Create" %></td>
  </tr>
</table>
<% end %>