Sha256: 0d5163ba4d44e356aaa78fc51c95c7de71ef919563ec7c84bf07094f44ad67d1

Contents?: true

Size: 856 Bytes

Versions: 13

Compression:

Stored size: 856 Bytes

Contents

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

<h2><%= t(:new) %> <%= t("activerecord.models.#{@payment.class.to_s.underscore}.one") %></h2>

<% if @payment_methods.any? %>
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @payment } %>

  <%= form_for @payment, :url => admin_order_payments_path(@order) do |f| %>

    <%= render :partial => 'form', :locals => { :f => f } %>

    <p class="form-buttons" data-hook="buttons">
      <%= button @order.cart? ? t(:continue) : t(:update) %>
    </p>

  <% end %>
<% else %>
  <%= t(:cannot_create_payment_without_payment_methods) %>
  <%= link_to t(:please_define_payment_methods), admin_payment_methods_url %>
<% end %>

<% content_for :head do %>
  <%= javascript_include_tag '/admin/javascripts/payments/new.js' %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.5 app/views/spree/admin/payments/new.html.erb
spree_core-1.0.7 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.4 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.3 app/views/spree/admin/payments/new.html.erb
spree_core-1.0.6 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.2 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.2.rc1 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.1 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.0 app/views/spree/admin/payments/new.html.erb
spree_core-1.0.4 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.0.rc2 app/views/spree/admin/payments/new.html.erb
spree_core-1.1.0.rc1 app/views/spree/admin/payments/new.html.erb