Skip to content

Commit

Permalink
Improved html code for core_amount fields in products form
Browse files Browse the repository at this point in the history
  • Loading branch information
romul committed May 28, 2012
1 parent f53c305 commit 9831d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions app/overrides/core_charges_admin_product_form_right.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
Deface::Override.new(:virtual_path => "spree/admin/products/_form",
:name => "core_charges_admin_product_form_right",
:insert_bottom => "[data-hook='admin_product_form_right'], #admin_product_form_right[data-hook]",
:text => "<%= f.label :core_amount, t(\"core_amount\") %> <br />
<%= f.select :core_amount, [nil, 25.0, 50.0, 75.0, 100.0, 150.0, 200.0], :class => \"text \" %>
<%= f.error_message_on :core_amount %>",
:partial => "admin/products/core_amount_fields",
:disabled => false)
5 changes: 5 additions & 0 deletions app/views/admin/products/_core_amount_fields.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<p id="product_core_amount_field">
<%= f.label :core_amount, t("core_amount") %> <br />
<%= f.select :core_amount, [nil, 25.0, 50.0, 75.0, 100.0, 150.0, 200.0], :class => "text" %>
<%= f.error_message_on :core_amount %>
</p>

0 comments on commit 9831d9c

Please sign in to comment.