<%= render 'spree/admin/shared/payments_tabs' %> <% admin_breadcrumb(t('spree.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 t('spree.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(:state) %>
    <%= method.name %> <%= method.model_name.human %> <%= method.available_to_users ? t('spree.say_yes') : t('spree.say_no') %> <%= method.available_to_admin ? t('spree.say_yes') : t('spree.say_no') %> <%= t(method.active? ? :active : :inactive, scope: 'spree') %> <% 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 %>