Sha256: 9be838b528e5fee4e701741db2815fc1f42ba8652dddd76ea83d9dca78ba4fd6

Contents?: true

Size: 608 Bytes

Versions: 15

Compression:

Stored size: 608 Bytes

Contents

<!-- insert_after 'p[data-hook=price]' -->
<p data-hook="zone_prices">
<label for="zone_prices">Zone Prices:</label>
<% zones = Spree::Zone.all %>
<% zones.each do |zone| %>
	<% zone_price = ZonePrice.find(:first, :conditions => {:variant_id => @variant.id, :zone_id => zone.id}) %>
	<p>
		<%= zone.name %>:<br />
		<% if !zone_price.nil? %>
			<%= text_field_tag "zone_price_" + @variant.id.to_s + "_" + zone.id.to_s, number_with_precision(zone_price.price, :precision => 2) %>
		<% else %>
			<%= text_field_tag "zone_price_" + @variant.id.to_s + "_" + zone.id.to_s, "" %>
		<% end %>
	</p>
<% end %>
</p>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_zone_pricing-0.1.50 app/overrides/spree/admin/variants/_form/spree_zone_pricing.html.erb.deface
spree_zone_pricing-0.1.49 app/overrides/spree/admin/variants/_form/spree_zone_pricing.html.erb.deface
spree_zone_pricing-0.1.48 app/overrides/spree/admin/variants/_form/spree_zone_pricing.html.erb.deface
spree_zone_pricing-0.1.47 app/overrides/spree/admin/variants/_form/spree_zone_pricing.html.erb.deface
spree_zone_pricing-0.1.46 app/overrides/spree/admin/variants/_form/spree_zone_pricing.html.erb.deface
spree_zone_pricing-0.1.45 app/overrides/spree/admin/variants/_form/spree_zone_pricing.html.erb.deface
spree_zone_pricing-0.1.44 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.43 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.42 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.41 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.40 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.39 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.38 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.37 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface
spree_zone_pricing-0.1.36 app/overrides/spree/admin/variants/_form/my_override.html.erb.deface