Sha256: 381d03362ab708db2652f695b0d5cf5b23e4c3079b94c130a001b8b7f926b882

Contents?: true

Size: 900 Bytes

Versions: 3

Compression:

Stored size: 900 Bytes

Contents

- item_action ||= lambda{|object| url_for(object)}

%tr[booking_template]
  %td
    = link_to "%s" % [booking_template.title, booking_template.code], item_action.call(booking_template), 'data-href-container' => 'tr'
    - if booking_template.comments.present?
      %hr{:style => "height: 1px; margin: 0"}/
      %i= booking_template.comments
  %td= link_to booking_template.credit_account.code, account_path(booking_template.credit_account), :title => booking_template.credit_account.title unless booking_template.credit_account.nil?
  %td= link_to booking_template.debit_account.code, account_path(booking_template.debit_account), :title => booking_template.debit_account.title unless booking_template.debit_account.nil?
  %td.currency= amount_to_s(booking_template)
  %td= t(booking_template.amount_relates_to, :scope => 'booking_template.relation') if booking_template.amount_relates_to.present?

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
has_accounts_engine-1.1.2 app/views/booking_templates/_booking_template.html.haml
has_accounts_engine-1.1.1 app/views/booking_templates/_booking_template.html.haml
has_accounts_engine-1.1.0 app/views/booking_templates/_booking_template.html.haml