Make ordergroup break fields a bit nicer
This commit is contained in:
parent
b067808937
commit
42eb6c8509
3 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
class DatePickerInput < SimpleForm::Inputs::StringInput
|
||||
def input(wrapper_options)
|
||||
options = merge_wrapper_options(input_html_options, wrapper_options)
|
||||
@builder.text_field attribute_name, options.merge(class: 'datepicker')
|
||||
@builder.text_field attribute_name, options.merge(class: 'input-small datepicker')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
= f.input :contact_person
|
||||
= f.input :contact_phone
|
||||
= f.input :contact_address
|
||||
= f.input :break_start, as: :date_picker
|
||||
= f.input :break_end, as: :date_picker
|
||||
.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
|
||||
|
|
|
@ -101,6 +101,7 @@ en:
|
|||
account_balance: Account balance
|
||||
available_funds: Available credit
|
||||
break: (Last) break
|
||||
break_until: until
|
||||
contact: Contact
|
||||
contact_address: Address
|
||||
contact_person: Contact person
|
||||
|
|
Loading…
Reference in a new issue