Sha256: f69aab79a95369e35be9352f6ab4e86cd80ecad3dba8013767b23abae9fcc570

Contents?: true

Size: 1.59 KB

Versions: 9

Compression:

Stored size: 1.59 KB

Contents

<% content_for :page_title do %>
  <%= t(:promotions) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to t(:new_promotion), spree.new_admin_promotion_path, :icon => 'icon-plus' %>
  </li>
<% end %>

<% unless @promotions.any? %>
  <div class="no-objects-found">
    <%= t(:no_promotions_found) %>.
    <%= link_to t(:add_one), spree.new_admin_promotion_path %>!
  </div>
<% else %>
  <table class="index">
    <colgroup>
      <col style="width: 20%">
      <col style="width: 10%">
      <col style="width: 35%">
      <col style="width: 10%">
      <col style="width: 15%">
      <col style="width: 10%">
    </colgroup>
    <thead>
      <tr>
        <th><%= t(:name) %></th>
        <th><%= t(:code) %></th>
        <th><%= t(:description) %></th>
        <th><%= t(:usage_limit) %></th>
        <th><%= t(:expiration) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @promotions.each do |promotion| %>
        <tr id="<%= spree_dom_id promotion %>" class="<%= cycle('odd', 'even')%>">
          <td><%= promotion.name %></td>
          <td class="align-center"><%= promotion.code %></td>
          <td><%= promotion.description %></td>
          <td class="align-center"><%= promotion.usage_limit %></td>
          <td class="align-center"><%= promotion.expires_at.to_date.to_s(:short_date) if promotion.expires_at %></td>
          <td class="actions">
            <%= link_to_edit promotion, :no_text => true %>
            <%= link_to_delete promotion, :no_text => true %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_promo-1.3.5 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.3.4 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.3.3 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.3.2 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.3.1 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.3.0 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.3.0.rc2 app/views/spree/admin/promotions/index.html.erb
dup_spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/index.html.erb
spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/index.html.erb