Fixed routing bug on (ex) admin controller.
This commit is contained in:
parent
9a54d8504c
commit
571548dfbc
10 changed files with 9 additions and 15 deletions
45
app/views/admin/base/index.html.haml
Normal file
45
app/views/admin/base/index.html.haml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
- title "Administration"
|
||||
|
||||
%p
|
||||
%i Hier kannst Du die Gruppen und Benutzerinnen der Foodsoft verwalten.
|
||||
.left_column{:style => "width:48%"}
|
||||
.box_title
|
||||
%h2 Neuste Benutzerinnen
|
||||
.column_content
|
||||
%table
|
||||
%tr
|
||||
%th Benutzername
|
||||
%th Name
|
||||
%th Erstellt am
|
||||
- for user in @users
|
||||
%tr{:class => cycle('even','odd', :name => 'users')}
|
||||
%td= link_to user.nick, [:admin, user]
|
||||
%td=h user.name
|
||||
%td= format_date(user.created_on)
|
||||
%br/
|
||||
= link_to 'Alle Benutzerinnen', admin_users_path
|
||||
|
|
||||
= link_to "Neue Benutzerin", new_admin_user_path
|
||||
|
||||
.right_column{:style => "width:48%"}
|
||||
.box_title
|
||||
%h2 Neuste Gruppen
|
||||
.column_content
|
||||
%table
|
||||
%tr
|
||||
%th Gruppenname
|
||||
%th Typ
|
||||
%th Mitglieder
|
||||
- for group in @groups
|
||||
%tr{:class => cycle('even','odd', :name => 'groups')}
|
||||
%td= link_to group.name, [:admin, group]
|
||||
%td= group.class.human_name
|
||||
%td= group.users.size
|
||||
%br/
|
||||
= link_to 'Alle Bestellgruppen', admin_ordergroups_path
|
||||
|
|
||||
= link_to "Neue Bestellgruppe", new_admin_ordergroup_path
|
||||
|
|
||||
= link_to 'Alle Arbeitsgruppen', admin_workgroups_path
|
||||
|
|
||||
= link_to "Neue Arbeitsgruppe", new_admin_workgroup_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue