Sha256: b3a992b1e4849649f40b98c20822621dde7f20aebcb95f22a070216c9d2341b0

Contents?: true

Size: 1.81 KB

Versions: 14

Compression:

Stored size: 1.81 KB

Contents

<% 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? %>
  <table class="table" id='listing_payment_methods'>
    <thead>
      <tr data-hook="admin_payment_methods_index_headers">
        <th><%= Spree.t(:name) %></th>
        <th><%= Spree.t(:provider) %></th>
        <th class="text-center"><%= Spree.t(:display) %></th>
        <th class="text-center"><%= Spree.t(:active) %></th>
        <th data-hook="admin_payment_methods_index_header_actions" class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @payment_methods.each do |method|%>
        <tr id="<%= spree_dom_id method %>" data-hook="admin_payment_methods_index_rows">
          <td><%= method.name %></td>
          <td><%= method.type %></td>
          <td class="text-center"><%= method.display_on.blank? ? Spree.t(:both) : Spree.t(method.display_on) %></td>
          <td class="text-center"><%= method.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
          <td data-hook="admin_payment_methods_index_row_actions" class="actions actions-2 text-right">
            <%= link_to_edit(method, :no_text => true) if can? :edit, method %>
            <%= link_to_delete(method, :no_text => true) if can? :delete, method %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::PaymentMethod)) %>,
    <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::PaymentMethod %>!
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.8 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.7 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.6 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.5 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.4 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.3 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.2 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.1 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.0 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/payment_methods/index.html.erb