Sha256: b4311183dc47f93ae93c69ffdf58e969fb51be618fcaa5beccb3d1f664f43242

Contents?: true

Size: 1.46 KB

Versions: 9

Compression:

Stored size: 1.46 KB

Contents

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

<div class='toolbar'>
  <ul class='actions'>
    <li>
      <%= button_link_to t("new_payment_method"), new_object_url, :icon => 'add'  %>
    </li>
  </ul>
  <br class='clear' />
</div>

<h1><%= t("payment_methods") %></h1>

<table class="index">
  <thead>
    <%= hook :admin_payment_methods_index_headers do %>
      <th><%= t("name") %></th>
      <th><%= t("provider") %></th>
      <th><%= t("environment") %></th>
      <th><%= t("display") %></th>
      <th><%= t("active") %></th>
    <% end %>
    <th>
      <%= hook :admin_payment_methods_index_header_actions %>
    </th>
  </thead>
  <tbody>
    <% @payment_methods.each do |method|%>
      <tr id="<%= dom_id method %>">
        <%- locals = {:method => method} %>
        <%= hook :admin_payment_methods_index_rows, locals do %>
          <td width="120px"><%= method.name %></td>
          <td width="140px"><%= method.type %></td>
          <td width="100px"><%= method.environment.to_s.titleize %></td>
          <td width="60px"><%= method.display_on.blank? ? t('both') : t(method.display_on) %></td>
          <td width="60px"><%= method.active ? t(:yes) : t(:no) %></td>
        <% end %>
        <td width="140px">
          <%= hook :admin_payment_methods_index_row_actions, locals do %>
            <%= link_to_edit method %> &nbsp;
            <%= link_to_delete method %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/admin/payment_methods/index.html.erb
spree_core-0.40.4 app/views/admin/payment_methods/index.html.erb
spree_core-0.40.3 app/views/admin/payment_methods/index.html.erb
spree_core-0.40.2 app/views/admin/payment_methods/index.html.erb
spree_core-0.40.1 app/views/admin/payment_methods/index.html.erb
spree_core-0.40.0 app/views/admin/payment_methods/index.html.erb
spree_core-0.30.1 app/views/admin/payment_methods/index.html.erb
spree_core-0.30.0 app/views/admin/payment_methods/index.html.erb
spree_core-0.30.0.beta1 app/views/admin/payment_methods/index.html.erb