<%= render 'spree/admin/shared/payments_tabs' %> <% admin_breadcrumb(Spree.t(:settings)) %> <% admin_breadcrumb(plural_resource_name(Spree::Payment)) %> <% admin_breadcrumb(plural_resource_name(Spree::PaymentMethod)) %> <% content_for :page_actions do %> <% if can?(:create, Spree::PaymentMethod) %>
  • <%= button_link_to Spree.t(:new_payment_method), new_object_url, :id => 'admin_new_payment_methods_link' %>
  • <% end %> <% end %> <% if @payment_methods.any? %> <% @payment_methods.each do |method|%> <% end %>
    <%= Spree::PaymentMethod.human_attribute_name(:name) %> <%= Spree::PaymentMethod.human_attribute_name(:type) %> <%= Spree::PaymentMethod.human_attribute_name(:available_to_users) %> <%= Spree::PaymentMethod.human_attribute_name(:available_to_admin) %> <%= Spree::PaymentMethod.human_attribute_name(:active) %>
    <%= method.name %> <%= method.type %> <%= method.available_to_users ? Spree.t(:say_yes) : Spree.t(:say_no) %> <%= method.available_to_admin ? Spree.t(:say_yes) : Spree.t(:say_no) %> <%= method.active ? Spree.t(:say_yes) : Spree.t(:say_no) %> <% if can?(:update, method.becomes(Spree::PaymentMethod)) %> <%= link_to_edit method.becomes(Spree::PaymentMethod), :no_text => true %> <% end %> <% if can?(:destroy, method.becomes(Spree::PaymentMethod)) %> <%= link_to_delete method.becomes(Spree::PaymentMethod), :no_text => true %> <% end %>
    <% else %>
    <%= render 'spree/admin/shared/no_objects_found', resource: Spree::PaymentMethod, new_resource_url: new_object_url %>
    <% end %>