<%= render :partial => 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:editing_recurring) %> <%= @recurring.name %> <%= Spree.t(:plans) %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t(:new_plan), new_admin_recurring_plan_path(@recurring), :icon => 'icon-plus', :id => 'admin_new_recurring_plans_link' %>
  • <% end %> <% if @plans.present? %> <% @plans.each do |plan|%> <% end %>
    <%= Spree.t(:api_plan_id) %> <%= Spree.t(:name) %> <%= Spree.t(:amount) %> <%= Spree.t(:interval) %> <%= Spree.t(:interval_count) %> <%= Spree.t(:currency) %> <%= Spree.t(:trial_period_days) %> <%= Spree.t(:active) %> <%= Spree.t(:default) %>
    <%= plan.api_plan_id %> <%= plan.name %> <%= plan.amount %> <%= @recurring.class::INTERVAL[plan.interval.to_sym] %> <%= plan.interval_count %> <%= @recurring.class::CURRENCY[plan.currency.to_sym] %> <%= plan.trial_period_days %> <%= plan.active ? Spree.t(:say_yes) : Spree.t(:say_no) %> <%= plan.default ? Spree.t(:say_yes) : Spree.t(:say_no) %> <%= link_to_edit_url edit_admin_recurring_plan_url(@recurring, plan), :no_text => true %> <%= link_to_delete plan, url: admin_recurring_plan_url(@recurring, plan), :no_text => true %>
    <% else %>
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/plan')) %>, <%= link_to Spree.t(:add_one), spree.new_admin_recurring_plan_path(@recurring) %>!
    <% end %>
    <%= button_link_to Spree.t(:back), edit_admin_recurring_url(@recurring) %>