Sha256: 2b05326ec9d88ee2da48a7bea3d07fd6c29580040ca4c9dd0a9aa7e0f455bbc9

Contents?: true

Size: 1.12 KB

Versions: 85

Compression:

Stored size: 1.12 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) && !@promotion.apply_automatically? %>
      <%= 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

85 entries across 85 versions & 2 rubygems

Version Path
solidus_backend-2.11.13 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.0.4 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.1.4 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.12 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.0.3 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.1.3 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.1.2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.1.1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.1.0 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.11 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.0.2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.10 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.0.1 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.0.0 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.9 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.8 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.7 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.6 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-3.0.0.rc2 app/views/spree/admin/promotion_codes/index.html.erb
solidus_backend-2.11.5 app/views/spree/admin/promotion_codes/index.html.erb