Sha256: 0ccd9f62da645f78b6fcad1213dc15217043179fdce1c682513888e3d3f3157e

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

<div class='toolbar'>
  <ul class='actions'>
    <li>
      <%= button_link_to t(:new_promotion), spree.new_admin_promotion_path, :icon => 'add' %>
    </li>
  </ul>
  <br class="clear" />
</div>

<h1><%= t(:promotions) %></h1>

<table class="index">
  <thead>
    <tr>
      <th><%= t(:name) %></th>
      <th><%= t(:code) %></th>
      <th><%= t(:description) %></th>
      <th><%= t(:usage_limit) %></th>
      <th><%= t(:expiration) %></th>
      <th style="width:150px;"><%= t(:action) %></th>
    </tr>
  </thead>
  <tbody>
    <% @promotions.each do |promotion| %>
      <tr id="<%= dom_id promotion %>">
        <td><%= promotion.name %></td>
        <td><%= promotion.code %></td>
        <td><%= promotion.description %></td>
        <td><%= promotion.usage_limit %></td>
        <td><%= promotion.expires_at.to_date.to_s(:short_date) if promotion.expires_at %></td>
        <td>
          <%= link_to_edit promotion %> &nbsp;
          <%= link_to_delete promotion %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_promo-1.0.7 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.6 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.4 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.3 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.2 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.1 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.0 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.0.rc4 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.0.rc3 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.0.rc2 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.0.0.rc1 app/views/spree/admin/promotions/index.html.erb