Sha256: c4c87e1ffccac71552e862afe0c5bde93c0699a6efca259ae1e4679bcedc9f4a

Contents?: true

Size: 985 Bytes

Versions: 10

Compression:

Stored size: 985 Bytes

Contents

<%= form_tag paypal_checkout_refund_admin_order_payment_path(@order, @payment) do %>
  <div class="label-block left five columns alpha">
    <div>
      <fieldset data-hook="admin_variant_new_form">
        <legend><%= Spree.t('refund', :scope => :paypal) %></legend>
        <div class='field'>
          <%= label_tag 'refund_amount', Spree.t(:refund_amount, :scope => 'paypal') %>
          <small><em><%= Spree.t(:original_amount, :scope => 'paypal', :amount => @payment.display_amount) %></em></small><br>
          <% symbol = ::Money.new(1, Spree::Config[:currency]).symbol %>
          <% if Spree::Config[:currency_symbol_position] == "before" %>
            <%= symbol %><%= text_field_tag 'refund_amount', @payment.amount %>
          <% else %>
            <%= text_field_tag 'refund_amount', @payment.amount %><%= symbol %>
          <% end %>
        </div>
        <%= button Spree.t(:refund, scope: 'paypal'), 'money' %>
      </fieldset>
    </div>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
spree_paypal_checkout-0.0.2 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.1.5 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.1.4 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.1.3 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.1.2 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.1.1 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.1.0 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.0.9 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.0.8 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb
spree_paypal_api_checkout-0.0.7 app/views/spree/admin/payments/_paypal_checkout_complete.html.erb