Sha256: 09e2b789167759c36d5319236948b715532076028862ba235a75aabd2ea8f3cd

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

Deface::Override.new(
  :virtual_path => 'spree/admin/payments/_list',
  :name => 'add_payment_reference_details',
  :insert_after => "table.index",
  :text => %q{
    <% if bank_transfer_payment = @order.payments.from_bank_transfer.first %>
      <fieldset class="no-border-bottom" >
        <legend align="center"><%= Spree.t(:bank_transfer_payment_reference_details) %></legend>
        <table class="index">
          <thead>
            <tr data-hook="payments_header">
              <th><%= Spree.t(:deposited_on) %></th>
              <th><%= Spree.t(:bank_name) %></th>
              <th><%= Spree.t(:account_no) %></th>
              <th><%= Spree.t(:transaction_reference_no) %></th>
              <th class="actions"></th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td class='align-center'><%= bank_transfer_payment.deposited_on %></td>
              <td class='align-center'><%= bank_transfer_payment.bank_name %></td>
              <td class='align-center'><%= bank_transfer_payment.account_no %></td>
              <td class='align-center'><%= bank_transfer_payment.transaction_reference_no %></td>
            </tr>
          </tbody>
        </table>
      </fieldset>
    <% end %>
  }
)




Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree-bank-transfer-2.2.5 app/overrides/add_payment_reference_details.rb