Sha256: bcb516a9e49674cd213c76c478bdd7b4e4a9e862999993e4d89d26aeb7a29ba5
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
<table class="index sortable" data-hook="products_table" data-sortable-link="<%= update_positions_admin_product_relations_url(@product) %>"> <colgroup> <col style="width: 5%" /> <col style="width: 35%" /> <col style="width: 35%" /> <col style="width: 20%" /> <col style="width: 5%" /> </colgroup> <thead> <tr data-hook="products_header"> <th></th> <th><%= Spree.t(:name) %></th> <th><%= Spree.t(:type) %></th> <th><%= Spree.t(:discount_amount) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% product.relations.each do |relation| %> <tr id="<%= spree_dom_id relation %>" data-hook="products_row"> <td class="handle move-handle"> <span class="icon icon-move handle"></span> </td> <td><%= link_to relation.related_to.name, relation.related_to %></td> <td><%= relation.relation_type.name %></td> <td> <%= form_for relation, url: admin_product_relation_path(relation.relatable, relation) do |f| %> <div class="input-group"> <%= f.text_field :discount_amount, class: 'form-control text-center' %> <span class="input-group-btn"> <%= f.button Spree.t(:update), type: 'submit', class: 'btn btn-primary' %> </span> </div> <% end %> </td> <td class="actions"> <%= link_to_delete relation, url: admin_product_relation_url(relation.relatable, relation), no_text: true %> </td> </tr> <% end %> </tbody> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_related_products-1.0.0 | app/views/spree/admin/products/_related_products_table.html.erb |