Sha256: e64c2a1e9075f8d444b864d5f1aee4d18e35de9847d341defe39e7b3fdbd684c
Contents?: true
Size: 1.83 KB
Versions: 18
Compression:
Stored size: 1.83 KB
Contents
<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:recurring) %> <% end %> <% content_for :page_actions do %> <li> <%= button_link_to Spree.t(:new_recurring), new_admin_recurring_url, :icon => 'icon-plus', :id => 'admin_new_recurring_link' %> </li> <% end %> <% if @recurrings.any? %> <table class="index" id='listing_recurrings'> <colgroup> <col style="width: 30%"> <col style="width: 25%"> <col style="width: 25%"> <col style="width: 20%"> </colgroup> <thead> <tr data-hook="admin_payment_methods_index_headers"> <th><%= Spree.t(:name) %></th> <th><%= Spree.t(:provider) %></th> <th><%= Spree.t(:active) %></th> <th data-hook="admin_payment_methods_index_header_actions" class="actions"></th> </tr> </thead> <tbody> <% @recurrings.each do |recurring|%> <tr id="<%= spree_dom_id recurring %>" data-hook="admin_recurrings_index_rows" class="<%= cycle('odd', 'even')%>"> <td class="align-center"><%= recurring.name %></td> <td class="align-center"><%= recurring.class.display_name %></td> <td class="align-center"><%= recurring.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td> <td data-hook="admin_recurrings_index_row_actions" class="actions"> <%= link_to_edit_url edit_admin_recurring_url(recurring), :no_text => true %> <%= link_to_delete recurring, url: admin_recurring_url(recurring), :no_text => true %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="alpha twelve columns no-objects-found"> <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/recurring')) %>, <%= link_to Spree.t(:add_one), spree.new_admin_recurring_url %>! </div> <% end %>
Version data entries
18 entries across 18 versions & 1 rubygems