Sha256: 663e9e380dc6ba330153635066b9ee5bd4dfe32049cfdbc85d31e1d1606afc1d

Contents?: true

Size: 1.96 KB

Versions: 6

Compression:

Stored size: 1.96 KB

Contents

<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:payment_methods) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:new_payment_method), new_object_url, :icon => 'icon-plus', :id => 'admin_new_payment_methods_link' %>
  </li>
<% end %>

<% if @payment_methods.any? %>
  <table class="index" id='listing_payment_methods'>
    <colgroup>
      <col style="width: 15%">
      <col style="width: 35%">
      <col style="width: 15%">
      <col style="width: 10%">
      <col style="width: 10%">
      <col style="width: 15%">
    </colgroup>
    <thead>
      <tr data-hook="admin_payment_methods_index_headers">
        <th><%= Spree.t(:name) %></th>
        <th><%= Spree.t(:provider) %></th>
        <th><%= Spree.t(:environment) %></th>
        <th><%= Spree.t(:display) %></th>
        <th><%= 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" class="<%= cycle('odd', 'even')%>">
          <td class="align-center"><%= method.name %></td>
          <td><%= method.type %></td>
          <td class="align-center"><%= method.environment.to_s.titleize %></td>
          <td class="align-center"><%= method.display_on.blank? ? Spree.t(:both) : Spree.t(method.display_on) %></td>
          <td class="align-center"><%= method.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
          <td data-hook="admin_payment_methods_index_row_actions" class="actions">
            <%= link_to_edit method, :no_text => true %>
            <%= link_to_delete method, :no_text => true  %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alpha twelve columns no-objects-found"><%= Spree.t(:no_payment_methods_found) %></div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_backend-2.0.4 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-2.0.3 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-2.0.2 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-2.0.1 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-2.0.0 app/views/spree/admin/payment_methods/index.html.erb
spree_backend-2.0.0.rc1 app/views/spree/admin/payment_methods/index.html.erb