<% content_for :page_title do %> <%= link_to "#{Spree.t(:editing_user)} #{@user.email}", edit_admin_user_url(@user) %> <% end %> <%= render :partial => 'spree/admin/users/sidebar', :locals => { :current => :store_credits } %> <% content_for :page_actions do %>
  • <%= link_to_with_icon 'arrow-left', Spree.t("admin.store_credits.back_to_edit"), admin_user_store_credit_path(@user, @store_credit), class: 'button' %>
  • <% end %> <%= form_for [:admin, @user, @store_credit], url: invalidate_admin_user_store_credit_path, method: :put do |f| %>
    <%= Spree.t("admin.store_credits.invalidate_store_credit") %>
    <%= render partial: 'update_reason_field', locals: { f: f } %>
    <%= button Spree.t('store_credit.actions.invalidate'), 'ban' %> <%= button_link_to Spree.t('actions.cancel'), admin_user_store_credit_path(@user, @store_credit), icon: 'remove' %>
    <% end %>