<%= f.field_container :loyalty_points do %>
<%= f.label :loyalty_points, Spree.t(:loyalty_points) %> *
<%= f.text_field :loyalty_points, :class => 'fullwidth title' %>
<%= f.error_message_on :loyalty_points %>
<% end %>
<%= f.label :type, Spree.t(:transaction_type) %> *
<%= f.select :type, options_for_select(Spree::LoyaltyPointsTransaction::CLASS_TO_TRANSACTION_TYPE.invert), {}, :class => 'select2 fullwidth' %>
<%= f.error_message_on :type %>
<%= label_tag nil, Spree.t(:order) %>
<%= f.select :source_id, @user.orders.collect {|o| [o.number, o.id]}, {:include_blank => true}, :class => 'select2 fullwidth', :"data-transactions-link" => admin_user_loyalty_points_path(@user) %>
<%= f.hidden_field :source_type, { :value => 'Spree::Order' } %>
<%= f.field_container :comment do %>
<%= f.label :comment, Spree.t(:comment) %> *
<%= f.text_area :comment, :class => 'fullwidth' %>
<%= f.error_message_on :comment %>
<% end %>