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

17 lines
824 B
Text
Raw Normal View History

- unless @ordergroup.new_record? || FoodsoftConfig[:disable_invite]
2013-02-03 18:10:11 +01:00
%p= t('.first_paragraph', url: link_to(t('.here'), new_invite_path(id: @ordergroup.id), remote: true)).html_safe
2011-06-10 01:36:04 +02:00
= simple_form_for [:admin, @ordergroup] do |f|
- captured = capture do
2011-06-10 01:36:04 +02:00
= f.input :contact_person
= f.input :contact_phone
= f.input :contact_address
.fold-line
= f.input :break_start, as: :date_picker, label: Ordergroup.human_attribute_name('break')
= f.input :break_end, as: :date_picker, label: Ordergroup.human_attribute_name('break_until')
- if FoodsoftConfig[:use_apple_points]
= f.input :ignore_apple_restriction, :label => false, :inline_label => true
= render 'shared/group_form_fields', f: f, captured: captured
.form-actions
= f.button :submit
= link_to t('ui.or_cancel'), :back