Sha256: f8fdcb8c22303b0ab63a86d4735c2843c361df1b872e29b80b1545aadf4343f9
Contents?: true
Size: 1.13 KB
Versions: 29
Compression:
Stored size: 1.13 KB
Contents
<div class="panel-body calculator-fields"> <% promotion_action.promotion_action_line_items.each do |item| %> <strong><%= item.quantity %> x <%= item.variant.product.name %></strong> <%= item.variant.options_text %> <% end %> <% if promotion_action.promotion_action_line_items.empty? %> <% line_items = promotion_action.promotion_action_line_items %> <% line_items.build %> <% line_items.each_with_index do |line_item, index| %> <div class="add-line-item"> <% line_item_prefix = "#{param_prefix}[promotion_action_line_items_attributes][#{index}]" %> <div class="form-group"> <%= label_tag "#{line_item_prefix}_variant_id", Spree.t(:variant) %> <%= hidden_field_tag "#{line_item_prefix}[variant_id]", line_item.variant_id, class: "variant_autocomplete fullwidth-input" %> </div> <div class="form-group no-marginb"> <%= label_tag "#{line_item_prefix}_quantity", Spree.t(:quantity) %> <%= number_field_tag "#{line_item_prefix}[quantity]", line_item.quantity, min: 1, class: 'form-control' %> </div> </div> <% end %> <% end %> </div>
Version data entries
29 entries across 29 versions & 1 rubygems