-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic index page for PromotionBatches
- Loading branch information
1 parent
cc305d4
commit 4c4390c
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Spree | ||
module Admin | ||
class PromotionBatchesController < ResourceController | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<% content_for :page_title do %> | ||
<%= plural_resource_name(Spree::PromotionBatch) %> | ||
<% end %> | ||
|
||
<% if @promotion_batches.any? %> | ||
<div class="table-responsive border rounded bg-white"> | ||
<table class="table"> | ||
<thead class="text-muted"> | ||
<tr> | ||
<th><%= Spree.t(:id) %></th> | ||
<th><%= Spree.t(:status) %></th> | ||
<th><%= Spree.t(:size) %></th> | ||
<th><%= Spree.t(:template_promotion) %></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% @promotion_batches.each do |promotion_batch| %> | ||
<tr id="<%= spree_dom_id promotion_batch %>"> | ||
<td><%= link_to promotion_batch.id, spree.edit_admin_promotion_batch_path(promotion_batch) %></td> | ||
<td><%= promotion_batch.status %></td> | ||
<td><%= promotion_batch.promotions.count %></td> | ||
<td><%= promotion_batch.template_promotion_id %></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters