foodsoft/app/views/admin/workgroups/_form.html.haml

18 lines
667 B
Text
Raw Normal View History

- unless FoodsoftConfig[:disable_invite]
%p= t('.first_paragraph', url: link_to(t('.here'), new_invite_path(id: @workgroup.id), remote: true)).html_safe
2011-06-10 13:22:15 +02:00
= simple_form_for [:admin, @workgroup] do |f|
- captured = capture do
= render 'shared/custom_form_fields', f: f, type: :workgroup
%h4= t 'admin.access_to'
2011-06-10 13:22:15 +02:00
= f.input :role_suppliers
= f.input :role_article_meta
= f.input :role_orders
2017-11-15 23:58:11 +01:00
= f.input :role_pickups
2015-04-03 17:02:55 +02:00
= f.input :role_finance
= f.input :role_invoices
2015-04-03 17:02:55 +02:00
= f.input :role_admin
= render 'shared/group_form_fields', :f => f, captured: captured
.form-actions
= f.button :submit
= link_to t('ui.or_cancel'), :back