= semantic_form_for @salary_booking_template do |f|
  = f.semantic_errors
  = f.inputs do
    .row
      .span8= f.input :title, :input_html => {"data-autofocus" => true}
      .span8= f.input :code
    .row
      .span8= f.input :credit_account, :as => :combobox, :collection => accounts_as_collection
      .span8= f.input :debit_account, :as => :combobox, :collection => accounts_as_collection
    .row
      .span8= f.input :amount
      .span8= f.input :amount_relates_to, :collection => saldo_inclusion_flag_collection
    .row
      .span16= f.input :comments, :input_html => {:rows => 2, :class => 'span12'}

    .row
      .span8= f.input :include_in_saldo_list, :as => :check_boxes, :collection => saldo_inclusion_flag_collection

    .row
      .span8= f.input :salary_declaration_code

  = f.buttons do
    = f.commit_button

= semantic_form_for @salary_booking_template do |f|
  = f.semantic_errors
  = f.inputs do
    .row
      .span8= f.input :title, :input_html => {"data-autofocus" => true}
      .span8= f.input :code
    .row
      .span8= f.input :credit_account, :as => :combobox, :collection => accounts_as_collection
      .span8= f.input :debit_account, :as => :combobox, :collection => accounts_as_collection
    .row
      .span8= f.input :amount
      .span8= f.input :amount_relates_to
    .row
      .span16= f.input :comments, :input_html => {:rows => 2, :class => 'span12'}

    .row
      .span8= f.input :include_in_saldo_list, :as => :check_boxes, :collection => saldo_inclusion_flag_collection

    .row
      .span8= f.input :salary_declaration_code

  = f.buttons do
    = f.commit_button

Use text field for salary_booking_template amount_relates_to.
Use text field for salary_booking_template amount_relates_to.
