summaryrefslogtreecommitdiff
path: root/app/views/users/new.html.erb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-10-07 21:03:28 +0200
committerhukl <contact@smyck.org>2009-10-07 21:03:28 +0200
commit9dadc61cae2c4c01a97880e89ca86a0e760fc8d1 (patch)
tree4c50bccc0339429d669a04e5dc3f2e735dfcb515 /app/views/users/new.html.erb
parenta57fb0c2084885c35b7ba89917c37696e5df3b3f (diff)
implemented complete restful user management interface including functional tests. this enables basic user operation. note that only admins are allowed to create, edit, destroy other users
Diffstat (limited to 'app/views/users/new.html.erb')
-rw-r--r--app/views/users/new.html.erb32
1 files changed, 30 insertions, 2 deletions
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index c21a1ad..0629641 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -1,2 +1,30 @@
1<h1>Users#new</h1> 1<h1>Create new user</h1>
2<p>Find me in app/views/users/new.html.erb</p> 2
3<% form_for @user do |f| %>
4<table id="new_node">
5 <tr>
6 <td class="description">Login</td>
7 <td><%= f.text_field :login %></td>
8 </tr>
9 <tr>
10 <td class="description">E-Mail</td>
11 <td><%= f.text_field :email %></td>
12 </tr>
13 <tr>
14 <td class="description">Password</td>
15 <td><%= f.text_field :password %></td>
16 </tr>
17 <tr>
18 <td class="description">Confirm</td>
19 <td><%= f.text_field :password_confirmation %></td>
20 </tr>
21 <tr>
22 <td class="description">Admin?</td>
23 <td><%= f.check_box :admin %></td>
24 </tr>
25 <tr>
26 <td class="description"></td>
27 <td class="right"><%= f.submit "Create" %></td>
28 </tr>
29</table>
30<% end %> \ No newline at end of file