Sha256: 84d6863e007f3906c79f745bcb432d888b57d03dcedc7b6eee81f90c7057d360

Contents?: true

Size: 978 Bytes

Versions: 5

Compression:

Stored size: 978 Bytes

Contents

= simple_form_for @booking do |f|
  .row-fluid
    .span6
      = f.input :title, :input_html => {"data-autofocus" => true}
    .span6
      = f.input :value_date, :as => :date_field
  .row-fluid
    .span6
      = f.input :amount, :as => :string
    - if @booking.respond_to? :code
      .span6
        = f.input :code

  .row-fluid
    .span6
      = f.association :debit_account, :collection => accounts_as_collection(Account.all), :as => :combobox
    .span6
      = f.association :credit_account, :collection => accounts_as_collection(Account.all), :as => :combobox

  .row-fluid
    .span12
      = f.input :comments, :input_html => {:rows => 4, :class => 'span12'}

  .row-fluid
    .span12
      = f.input :reference_type, :as => :hidden, :input_html => {:value => 'Invoice'}
      = f.association :reference, :collection => suggested_invoices_for_booking(@booking, :include_all => true), :as => :combobox, :include_blank => true

  .form-actions
    = f.button :submit

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
has_accounts_engine-3.0.0.beta3 app/views/bookings/_form.html.haml
has_accounts_engine-3.0.0.beta2 app/views/bookings/_form.html.haml
has_accounts_engine-3.0.0.beta1 app/views/bookings/_form.html.haml
has_accounts_engine-3.0.0.beta0 app/views/bookings/_form.html.haml
has_accounts_engine-2.0.1 app/views/bookings/_form.html.haml