Sha256: 778af02b1ac140db6bde623f6e7da14dc847628a680eeacf0b3e947fb3d1b883

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

<table class="index">
  <tr>
    <th><%= t(:product) %></th>
    <th><%= t(:qty) %></th>
    <th>&nbsp;</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' %>
      </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' %>
      <%= 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%">
      <button class="add small">
        <span><%= t(:add) %></span>
      </button>
    </div>
  </fieldset>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_promo-1.0.7 app/views/spree/admin/promotions/actions/_create_line_items.html.erb
spree_promo-1.0.6 app/views/spree/admin/promotions/actions/_create_line_items.html.erb