Moved users into new admin-namespace and made the controller restful. Also moved some logic from the controller into the user-model (dry it up..).
This commit is contained in:
parent
47398c6a70
commit
461dfa8531
19 changed files with 242 additions and 94 deletions
13
app/views/admin/users/new.html.haml
Normal file
13
app/views/admin/users/new.html.haml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
- title "Neue Benutzerin"
|
||||
|
||||
#newUser
|
||||
.box_title
|
||||
%h2 Neue Benutzerin
|
||||
.column_content#userForm
|
||||
- form_for([:admin, @user]) do |@form|
|
||||
= render :partial => 'shared/user_form'
|
||||
%p{:style => "clear:both" }
|
||||
= submit_tag "Speichern"
|
||||
|
|
||||
= link_to('Abbrechen', admin_users_path )
|
||||
%p= link_to 'Benutzerinnenübersicht', admin_users_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue