Sha256: 229db67dd99f8d75a91d97db1e6861f96242a1c47483732bf126605a8f8c371f

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bookyt-0.0.1 app/views/charge_booking_templates/_charge_booking_template.html.haml