foodsoft/app/views/shared/_group.html.haml

25 lines
1 KiB
Text
Raw Permalink Normal View History

%dl
2013-12-12 00:13:19 +01:00
%dt= heading_helper(Ordergroup, :description) + ':'
2012-10-09 02:31:10 +02:00
%dd=h group.description
- if group.is_a?(Ordergroup) and (@current_user.role_admin? or @current_user.role_finance?)
2013-12-12 00:13:19 +01:00
%dt= heading_helper(Ordergroup, :contact) + ':'
2012-10-09 02:31:10 +02:00
%dd=h group.contact
2013-12-12 00:13:19 +01:00
%dt= heading_helper(Ordergroup, :contact_address) + ':'
2012-10-09 02:31:10 +02:00
%dd= link_to_gmaps group.contact_address
%dt= heading_helper(Ordergroup, :customer_number) + ':'
%dd=h group.customer_number
- if group.break_start? or group.break_end?
%dt= heading_helper(Ordergroup, :break) + ':'
%dd= raw t '.break', start: format_date(group.break_start), end: format_date(group.break_end)
- if group.is_a?(Workgroup)
%dt= t('.access') + ':'
%dd= format_roles(group)
2013-12-12 00:13:19 +01:00
%dt= heading_helper(Ordergroup, :user_tokens) + ':'
2012-10-09 02:31:10 +02:00
%dd
- members = group.users
= "(#{members.size})"
2013-09-20 22:40:13 +02:00
= members.collect{|u| show_user(u)}.join(", ")
- if group.is_a?(Ordergroup) and FoodsoftConfig[:use_apple_points]
2013-02-08 19:16:06 +01:00
%dt= t '.apple_limit'
%dd= group.ignore_apple_restriction ? t('.deactivated') : t('.activated')