Sha256: a1807d5e0bac8b52674f6a905f3dce5855e191e7a7ed2692f6b8944b64f0efe7

Contents?: true

Size: 1.42 KB

Versions: 6

Compression:

Stored size: 1.42 KB

Contents

- unless @payments.empty?
  .table
    %table.data
      %thead
        %tr
          %th ID
          %th Type
          %th Method
          %th Reference
          %th Amount
          %th Refunded?
          %th
      %tbody
        - for payment in @payments
          %tr
            %td= payment.id
            %td
              = payment.refund? ? 'Refund' : 'Payment'
              %span.float-right= boolean_tag payment.confirmed?
            %td= payment.method
            %td= link_to_if payment.transaction_url, payment.reference, payment.transaction_url
            
            - if payment.refund?
              %td{:colspan => 2}
                %b= number_to_currency payment.amount
                - if payment.parent_payment_id
                  from payment ##{payment.parent_payment_id}
            - else
              %td= number_to_currency payment.amount
              %td= boolean_tag payment.refunded?, nil, :true_text => number_to_currency(payment.amount_refunded)
            %td.refund
              - if payment.refundable?
                = link_to "Refund", [:refund, @order, payment], :class => 'button purple button-mini', :rel => 'dialog'
              - else
                = link_to "Delete", [@order, payment], :class => 'button purple button-mini', :data => {:confirm => "Are you sure you wish to remove this payment?"}, :method => :delete
- else
  %p.notice There are no payments recorded for this order...

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoppe-1.0.2 app/views/shoppe/orders/_payments_table.html.haml
shoppe-1.0.1 app/views/shoppe/orders/_payments_table.html.haml
shoppe-1.0.0 app/views/shoppe/orders/_payments_table.html.haml
shoppe-0.0.21 app/views/shoppe/orders/_payments_table.html.haml
shoppe-0.0.20 app/views/shoppe/orders/_payments_table.html.haml
shoppe-0.0.19 app/views/shoppe/orders/_payments_table.html.haml