<commit_before><%= render '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 => '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 class="align-center"><%= 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><commit_msg>Use payment method .becomes for STI routes<commit_after><%= render '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 => '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 class="align-center"><%= 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.becomes(Spree::PaymentMethod), :no_text => true %>
            <%= link_to_delete method.becomes(Spree::PaymentMethod), :no_text => true  %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
{'fraction_non_alphanumeric': 0.21000255167134474, 'fraction_numerical': 0.0061240112273539165, 'mean_word_length': 3.1791044776119404, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4903040', 'n_tokens_mistral': 1465, 'n_tokens_neox': 1366, 'n_words': 247}