Sha256: a2cf55f31265e54f30521460c45d037ba7365d1142e7dcdf85286696c3cfd855

Contents?: true

Size: 976 Bytes

Versions: 1

Compression:

Stored size: 976 Bytes

Contents

<%= form_tag mollie_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 => :mollie) %></legend>
        <div class='field'>
          <%= label_tag 'refund_amount', Spree.t(:refund_amount, :scope => 'mollie') %>
          <small><em><%= Spree.t(:original_amount, :scope => 'mollie', :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: 'mollie'), 'money' %>
      </fieldset>
    </div>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_mollie-0.0.1 app/views/spree/admin/payments/_mollie_complete.html.erb