% admin_breadcrumb(plural_resource_name(SolidusSubscriptions::Subscription)) %> <% content_for :page_actions do %>
<%= sort_link(@search, :created_at, SolidusSubscriptions::Subscription.human_attribute_name(:created_at)) %> | <%= sort_link(@search, :user_email, SolidusSubscriptions::Subscription.human_attribute_name(:user)) %> | <%= sort_link(@search, :actionable_date, [:actionable_date, 'id asc'], SolidusSubscriptions::Subscription.human_attribute_name(:actionable_date)) %> | <%= sort_link(@search, :line_item_interval_length, SolidusSubscriptions::Subscription.human_attribute_name(:interval)) %> | <%= sort_link(@search, :state, [:state, 'id asc'], SolidusSubscriptions::Subscription.human_attribute_name(:state)) %> | <%= sort_link(@search, :processing_state, [:processing_state, 'id asc'], SolidusSubscriptions::Subscription.human_attribute_name(:processing_state)) %> | |
---|---|---|---|---|---|---|
<%= l(subscription.created_at.to_date) %> | <%= link_to subscription.user.email, admin_user_path(subscription.user) %> | <%= subscription.actionable_date ? l(subscription.actionable_date) : '-' %> | <%= subscription.interval.inspect %> | <%= render 'state_pill', subscription: subscription %> | <%= render 'processing_state_pill', subscription: subscription %> | <% if subscription.state_events.include?(:cancel) %> <%= link_to_with_icon( :stop, t('spree.admin.subscriptions.actions.cancel'), spree.cancel_admin_subscription_path(subscription), no_text: true, method: :delete, data: { confirm: t('spree.admin.subscriptions.actions.cancel_alert') } ) %> <% end %> <% if subscription.state_events.include?(:activate) %> <%= link_to_with_icon( :play, t('spree.admin.subscriptions.actions.activate'), spree.activate_admin_subscription_path(subscription), no_text: true, method: :post ) %> <% end %> <% if subscription.active? %> <%= link_to_with_icon( :'fast-forward', t('spree.admin.subscriptions.actions.skip'), spree.skip_admin_subscription_path(subscription), no_text: true, method: :post ) %> <% end %> <%= link_to_edit(subscription, no_text: true) %> |