Sha256: 01384aee21439da038358041d29d7f43d7fa1ec4d21be291b4cab5bd63193970

Contents?: true

Size: 949 Bytes

Versions: 13

Compression:

Stored size: 949 Bytes

Contents

<div class='toolbar'>
  <ul class='actions'>
    <li>
      <%= button_link_to t("new_credit_card_payment"), new_admin_order_creditcard_payment_url(@order), :icon => 'add' %>
    </li>
  </ul>
  <br class='clear' />
</div>

<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Payments"} %>

<table class="index">
  <tr>
    <th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th>
    <th><%= t("amount") %></th>
    <th><%= t("type") %></th>
    <th></th>
  </tr>
  <% @payments.each do |payment| %>
    <tr>
      <td><%= payment.created_at.to_s(:date_time24) %></td>
      <td><%= number_to_currency(payment.amount) %></td>
      <td><%= payment.class.to_s %></td>
      <!-- TODO: don't assume credit card, make it possible to edit other kinds of payments -->
      <td>
        <%= link_to_with_icon 'edit', t('edit'), edit_admin_order_creditcard_payment_url(@order, payment) %>
      </td>
    </tr>
  <% end %>
</table>

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 app/views/admin/payments/index.html.erb
spree-enriquez-0.9.4 app/views/admin/payments/index.html.erb
spree-0.9.4 app/views/admin/payments/index.html.erb
spree-0.9.3 app/views/admin/payments/index.html.erb
spree-0.9.2 app/views/admin/payments/index.html.erb
spree-0.9.1 app/views/admin/payments/index.html.erb
spree-0.9.0 app/views/admin/payments/index.html.erb
spree-0.8.4 app/views/admin/payments/index.html.erb
spree-0.8.5 app/views/admin/payments/index.html.erb
spree-0.8.0 app/views/admin/payments/index.html.erb
spree-0.8.1 app/views/admin/payments/index.html.erb
spree-0.8.2 app/views/admin/payments/index.html.erb
spree-0.8.3 app/views/admin/payments/index.html.erb