Skip to content

Commit

Permalink
List promotions in BatchPromotion #show
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Nov 26, 2023
1 parent 7be826e commit aa76170
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/views/spree/admin/promotion_batches/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,20 @@
) %>
<% end %>
<% end %>

<table class="table">
<thead class="text-muted">
<tr>
<th><%= Spree.t(:name) %></th>
<th><%= Spree.t(:code) %></th>
</tr>
</thead>
<tbody>
<% @promotion_batch.promotions.each do |promotion| %>
<tr id="<%= spree_dom_id promotion %>">
<td><%= promotion.name %></td>
<td><%= promotion.code %></td>
</tr>
<% end %>
</tbody>
</table>

0 comments on commit aa76170

Please sign in to comment.