Sha256: 31ea63ff53f892adc11fc356a0ff3c87f0e7d0be5b8d4d0bf977399c86cd18e5

Contents?: true

Size: 972 Bytes

Versions: 6

Compression:

Stored size: 972 Bytes

Contents

- booking = resource
%tr[booking]
  = simple_fields_for booking, :wrapper => 'table' do |f|
    %td= f.input :value_date, :as => 'date_field', :label => false
    %td= f.input :code, :label => false
    %td
      = f.input :title, :input_html => {'data-autofocus' => true}
      = f.input :comments, :rows => 2
    %td= link_to booking.reference.to_s(:reference), booking.reference unless booking.reference.nil?
    %td= f.association :debit_account, :collection => accounts_as_collection(Account.all), :as => :combobox, :input_html => { :style => 'max-width: 14ex' }
    %td= f.association :credit_account, :collection => accounts_as_collection(Account.all), :as => :combobox, :input_html => { :style => 'max-width: 14ex' }
    %td= f.input :amount, :as => :string
    %td.action-links
      = list_link_for(:show, booking, :icon => 'remove', :method => :put, :remote => true, 'data-table-key' => '27')
      = link_to "#", 'data-table-key' => '13' do
        %i.icon-ok

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
has_accounts_engine-3.0.0.beta15 app/views/bookings/_booking_form.html.haml
has_accounts_engine-3.0.0.beta14 app/views/bookings/_booking_form.html.haml
has_accounts_engine-3.0.0.beta13 app/views/bookings/_booking_form.html.haml
has_accounts_engine-3.0.0.beta12 app/views/bookings/_booking_form.html.haml
has_accounts_engine-3.0.0.beta11 app/views/bookings/_booking_form.html.haml
has_accounts_engine-3.0.0.beta10 app/views/bookings/_booking_form.html.haml