<commit_before><%= render :partial => 'spree/admin/shared/configuration_menu' %>

<h1><%= Spree.t("new_store_#{@store_credit.type.demodulize.downcase}")%></h1>

<%= render 'spree/shared/error_messages', :target => @store_credit %>

<h3 data-hook='user-email'>User Email: <%= @store_credit.user.email %></h3>
<h4 data-hook='user-email'>Current Balance: <%= @store_credit.user.store_credits_total %></h4>

<%= form_for [:admin, @user, @store_credit], :as => :store_credit do |f| %>
  <%= f.field_container :amount do %>
    <%= f.label :amount %><br />
    <%= f.text_field :amount, :id => "debit_credit_amount" %>
  <% end %>

  <%= f.field_container :payment_mode do %>
    <%= f.label :payment_mode, 'Payment Mode' %><br />
    <%= f.select :payment_mode, store_credit_class::PAYMENT_MODE.select { |key, value| value >= 0 }, { :prompt => 'Select' } %>
  <% end %>

  <%= f.field_container :reason do %>
    <%= f.label :reason %><br />
    <%= f.text_field :reason %>
  <% end %>

  <%= f.submit :commit, :value => @store_credit.type.demodulize, :class => 'button', :id => 'debit_credit' %><commit_msg>add * to new form in store credit<commit_after><%= render :partial => 'spree/admin/shared/configuration_menu' %>

<h1><%= Spree.t("new_store_#{@store_credit.type.demodulize.downcase}")%></h1>

<%= render 'spree/shared/error_messages', :target => @store_credit %>

<h3 data-hook='user-email'>User Email: <%= @store_credit.user.email %></h3>
<h4 data-hook='user-email'>Current Balance: <%= @store_credit.user.store_credits_total %></h4>

<%= form_for [:admin, @user, @store_credit], :as => :store_credit do |f| %>
  <%= f.field_container :amount do %>
    <%= f.label :amount %>*<br />
    <%= f.text_field :amount, :id => "debit_credit_amount" %>
  <% end %>

  <%= f.field_container :payment_mode do %>
    <%= f.label :payment_mode, 'Payment Mode' %>*<br />
    <%= f.select :payment_mode, store_credit_class::PAYMENT_MODE.select { |key, value| value >= 0 }, { :prompt => 'Select' } %>
  <% end %>

  <%= f.field_container :reason do %>
    <%= f.label :reason %>*<br />
    <%= f.text_field :reason %>
  <% end %>

  <%= f.submit :commit, :value => @store_credit.type.demodulize, :class => 'button', :id => 'debit_credit' %>
{'fraction_non_alphanumeric': 0.2234185733512786, 'fraction_numerical': 0.006280843427545985, 'mean_word_length': 4.465686274509804, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '927422', 'n_tokens_mistral': 921, 'n_tokens_neox': 822, 'n_words': 154}