foodsoft/app/views/shared/_workgroup_members.haml

6 lines
318 B
Text
Raw Normal View History

- for group in Group.find :all, :conditions => "type != 'Ordergroup'"
%h4= link_to_function group.name, "Element.toggle('workgroup_#{group.id}')"
2009-01-06 11:49:19 +01:00
%ul{:style => "display:none"}[group]
- for user in group.users.find :all, :order => "nick"
%li= user.nick + " (#{user.ordergroup.name if user.ordergroup})"
2009-01-06 11:49:19 +01:00