% 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 %>
<%= Spree::StoreCredit.human_attribute_name(:amount) %>: | <%= @store_credit.display_amount.to_html %> | |
<%= Spree::StoreCredit.human_attribute_name(:created_by_id) %>: | <%= @store_credit.created_by_email %> | |
<%= Spree.t("admin.store_credits.credit_type") %>: | <%= @store_credit.category_name %> | |
<%= Spree::StoreCredit.human_attribute_name(:memo) %>: | <%= @store_credit.memo %> | <% if can?(:update, @store_credit) %> <%= link_to '', '#', class: 'js-edit-memo edit-method fa fa-edit no-text with-tip', data: { action: 'edit' }, title: Spree.t('actions.edit') %> <% end %> |
<%= Spree::StoreCredit.human_attribute_name(:memo) %>: | <%= form_tag admin_user_store_credit_path(@user, @store_credit), method: :put, remote: true, id: 'sc_memo_edit_form' do %> <%= text_area_tag 'store_credit[memo]', @store_credit.memo %> <% end %> | <% if can?(:update, @store_credit) %> <%= link_to '', '#', class: 'js-save-memo fa fa-check no-text with-tip', data: { user_id: @user.id, store_credit_id: @store_credit.id, action: 'save' }, title: Spree.t('actions.save') %> <%= link_to '', '#', class: 'js-cancel-memo fa fa-void no-text with-tip', data: { action: 'void' }, title: Spree.t('actions.cancel') %> <% end %> |