Sha256: fc0bd2e3f5aa4cd45aecca6620dc38c34d8976ee0362bdcb8d654faacd8973b1
Contents?: true
Size: 1.11 KB
Versions: 5
Compression:
Stored size: 1.11 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" %> </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
5 entries across 5 versions & 1 rubygems