%tr.line_item.nested-form-item
  %td= line_item.text_field :date, :style => 'width: 85px', 'date-picker' => 'true'
  %td= line_item.text_field :title, :required => true, :style => 'width: 30em'
  %td= line_item.text_field :times, :required => true, :style => 'width: 3em', :autocomplete => "off"
  %td= line_item.select :quantity, ['x', 'hours', 'overall'].map{|quantity| [t(quantity, :scope => 'line_items.quantity'), quantity]}, {}, :style => 'width: 6em'
  %td= line_item.text_field :price, :required => true, :style => 'width: 5em', :autocomplete => "off"
  %td.currency.total_amount= currency_fmt(line_item.object.total_amount)
  %td= line_item.select :vat_rate_code, vat_rates_as_collection
  %td= line_item.select :booking_template_id, BookingTemplate.by_type(resource_class.name + '_position').collect{|booking_template| [booking_template.title, booking_template.id]}
  %td.action_links
    = line_item.hidden_field :_destroy
    = link_to t_action(:delete), '#', :class => 'icon-delete-text delete-nested-form-item'

%tr.line_item.nested-form-item
  %td= line_item.text_field :date, :style => 'width: 85px', 'date-picker' => 'true'
  %td= line_item.text_field :title, :required => true, :style => 'width: 30em'
  %td= line_item.text_field :times, :required => true, :style => 'width: 3em', :autocomplete => "off"
  %td= line_item.select :quantity, ['x', 'hours', 'overall'].map{|quantity| [t(quantity, :scope => 'line_items.quantity'), quantity]}, {}, :style => 'width: 6em'
  %td= line_item.text_field :price, :required => true, :style => 'width: 5em', :autocomplete => "off"
  %td.currency.total_amount= currency_fmt(line_item.object.total_amount)
  %td= line_item.select :vat_rate_code, vat_rates_as_collection
  %td= line_item.select :booking_template_id, BookingTemplate.by_type(resource_class.name.underscore + '_position').collect{|booking_template| [booking_template.title, booking_template.id]}
  %td.action_links
    = line_item.hidden_field :_destroy
    = link_to t_action(:delete), '#', :class => 'icon-delete-text delete-nested-form-item'

Fix code generation for booking_template selection in line_item form.
Fix code generation for booking_template selection in line_item form.
