Sha256: e9118affb9556e093e483037cd70a4e8766083be2ff47e1a90f4b225bce2505d

Contents?: true

Size: 873 Bytes

Versions: 6

Compression:

Stored size: 873 Bytes

Contents

<% admin_breadcrumb link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path %>
<% admin_breadcrumb link_to(@promotion.name, spree.edit_admin_promotion_path(@promotion)) %>
<% admin_breadcrumb plural_resource_name(Spree::PromotionCode) %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to t('spree.download_promotion_code_list'), admin_promotion_promotion_codes_path(promotion_id: @promotion.id, format: :csv) %>
  </li>
<% end %>

<div class="pagination-summary">
  <%= page_entries_info(@promotion_codes) %>
</div>

<table>
  <thead>
    <th><%= Spree::PromotionCode.human_attribute_name :value %></th>
  </thead>
  <tbody>
    <% @promotion_codes.each do |promotion_code| %>
      <tr>
        <td><%= promotion_code.value %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= paginate @promotion_codes, theme: "solidus_admin" %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.5.1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.5.0 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.5.0.beta2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.5.0.beta1 app/views/spree/admin/promotion_codes/index.html.erb