% content_for :page_title do %> <%= plural_resource_name(Spree::PaymentMethod) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_payment_method), new_object_url, :class => "btn-success", :icon => 'add', :id => 'admin_new_payment_methods_link' %> <% end if can? :create, Spree::PaymentMethod %> <% if @payment_methods.any? %>
<%= Spree.t(:name) %> | <%= Spree.t(:provider) %> | <%= Spree.t(:display) %> | <%= Spree.t(:active) %> | ||
---|---|---|---|---|---|
<% if can?(:edit, method) %> <% end %> | <%= method.name %> | <%= method.type %> | <%= Spree.t(method.display_on) %> | <%= method.active ? Spree.t(:say_yes) : Spree.t(:say_no) %> | <%= link_to_edit(method, :no_text => true) if can? :edit, method %> <%= link_to_delete(method, :no_text => true) if can? :delete, method %> |