Sha256: 576060bb433889fe1d435983a57160568da7a2c8a33c912c8d918ab73b9b0fe2
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
<% def generate_id(form, input_name, rate) "#{form.object_name.gsub(/[\[\]]/, '[' => '_', ']' => '_')}#{input_name}_#{rate.id}" end %> <ul class="shipping-methods"> <% shipping_rates.each do |rate| %> <li class="shipping-methods__rate"> <%= render( 'spree/components/forms/inputs/radio_input', checked: rate.selected, id: generate_id(form, "selected_shipping_rate_id", rate), label: "#{rate.name} #{rate.display_cost}", name: "#{form.object_name}[selected_shipping_rate_id]", value: rate.id ) %> </li> <% end %> </ul>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_starter_frontend-0.1.0 | app/views/spree/components/checkout/_shipping_methods.html.erb |