Skip to content

Instantly share code, notes, and snippets.

@bnymn
Created March 21, 2017 11:54
Show Gist options
  • Save bnymn/682ab1b996d6b2b7e02b8868d0e57529 to your computer and use it in GitHub Desktop.
Save bnymn/682ab1b996d6b2b7e02b8868d0e57529 to your computer and use it in GitHub Desktop.
Deface::Override.new(:virtual_path => 'spree/admin/users/_form',
:name => 'add_special_price_to_product_edit',
:insert_after => "[data-hook=admin_user_form_roles]",
:text => "
<div data-hook=\"admin_user_form_approve\" class=\"form-group\">
<strong><%= Spree.t(:approve_user) %></strong>
<div class=\"checkbox\">
<%= f.label :approved do %>
<%= f.check_box :approved %>
<%= Spree.t(:approved) %>
<% end %>
</div>
</div>
")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment