%= 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) %>
<%= 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 %> |