Sha256: 5dda2e7fd61f1c07840be9ff70570af0f8d6bddc6a0561ffaa6bf4e28097addc

Contents?: true

Size: 1.08 KB

Versions: 21

Compression:

Stored size: 1.08 KB

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>
    <% if can?(:create, Spree::PromotionCode) %>
      <%= link_to t('spree.create_promotion_code'), new_admin_promotion_promotion_code_path(promotion_id: @promotion.id), class: 'btn btn-primary' %>
    <% end %>

    <%= link_to t('spree.download_promotion_codes_list'), admin_promotion_promotion_codes_path(promotion_id: @promotion.id, format: :csv), class: 'btn btn-primary' %>
  </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

21 entries across 21 versions & 1 rubygems

Version Path
solidus_backend-2.10.5 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.10.3 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.10.2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.6 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.8.6 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.10.1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.5 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.10.0 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.4 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.8.5 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.3 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.10.0.beta1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.0 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.9.0.rc.1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.8.4 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.8.3 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.8.2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.8.1 app/views/spree/admin/promotion_codes/index.html.erb