= semantic_form_for @salary do |f|
  = f.semantic_errors
  = f.inputs do
    = f.input :state, :collection => invoice_states_as_collection
    = f.input :customer_id, :as => :hidden
    = f.input :company_id, :as => :hidden
    = f.input :title
    = f.input :duration_from, :as => :date_field
    = f.input :duration_to, :as => :date_field
    = f.input :amount, :input_html => {:size => 12}
    = f.input :remarks, :input_html => {:rows => 4}

  = f.buttons do
    = f.commit_button

= semantic_form_for @salary do |f|
  = f.semantic_errors
  = f.inputs do
    = f.input :state, :collection => invoice_states_as_collection
    = f.input :employer, :as => :combobox
    = f.input :employee, :as => :combobox
    = f.input :title
    = f.input :duration_from, :as => :date_field
    = f.input :duration_to, :as => :date_field
    = f.input :amount, :input_html => {:size => 12}
    = f.input :remarks, :input_html => {:rows => 4}

  = f.buttons do
    = f.commit_button

Use combobox for employee and employer fields in salary form.
Use combobox for employee and employer fields in salary form.
