foodsoft/app/views/foodcoop/workgroups/edit.html.haml
Patrick Gansterer e16a0fb336 Add config option to disable the invites
Some foodcoops require that an admin adds all users to have more control
over the users.
2016-03-06 13:56:33 +01:00

9 lines
354 B
Text

- title t('.title')
- unless FoodsoftConfig[:disable_invite]
%p= t('.invite_new', invite_link: link_to(t('.invite_link'), new_invite_path(id: @workgroup.id))).html_safe
= simple_form_for [:foodcoop, @workgroup] do |f|
= render 'shared/group_form_fields', f: f
.form-actions
= f.submit
= link_to t('ui.or_cancel'), foodcoop_workgroups_path