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