Sha256: 6c86d374ca0b91102b44bc7acb8f58ed2561ef2b90f260f064965f9aaf780f0d
Contents?: true
Size: 1.37 KB
Versions: 7
Compression:
Stored size: 1.37 KB
Contents
<table class="index"> <tr> <th><%= t(:product) %></th> <th><%= t(:qty) %></th> <th> </th> </tr> <% promotion_action.promotion_action_line_items.each do |item| %> <tr> <td> <%= item.variant.product.name %> <%= item.variant.options_text %> </td> <td> <%= item.quantity %> </td> <td> <%= image_tag 'admin/icons/cross.png', :class => "remove_promotion_line_item", :data => { :variant_id => item.variant_id } %> </td> </tr> <% end %> </table> <%= hidden_field_tag "#{param_prefix}[line_items_string]", promotion_action.line_items_string, :class => 'line_items_string' %> <div class="add-line-item"> <fieldset> <legend><%= t(:add_product) %></legend> <div style="float:left; width:50%; margin-right:5%;"> <%= label_tag :add_product_name, t(:name_or_sku) %> <%= text_field_tag :add_product_name, nil, :class => 'fullwidth product_autocomplete' %> <%= hidden_field_tag :add_variant_id %> <%= hidden_field_tag :add_line_item_variant_id %> </div> <div style="float:left; width:10%; margin-right:5%;"> <%= label_tag :add_quantity, t(:qty) %> <%= text_field_tag :add_quantity, 1 %> </div> <div style="float:left; width:j0%"> <br /> <button class="add small"> <%= t(:add) %></button> </div> </fieldset> </div>
Version data entries
7 entries across 7 versions & 1 rubygems