Sha256: 6243cf904a64aa87c49b644ae59deb74cf717be26c4e748f0a52d4d71101df37

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 KB

Contents

<div class='toolbar'>
  <ul class='actions'>
    <li>
      <%= button_link_to t("new_coupon"), new_object_url, :icon => 'add'  %>
    </li>
  </ul>
  <br class='clear' />
</div>

<h1><%= t("coupons") %></h1>

<table class="index">
  <thead>
    <th><%= t("code") %></th>
    <th><%= t("description") %></th>
    <th><%= t("combine") %></th>
    <th><%= t("usage_limit") %></th>
    <th><%= t("expiration") %></th>
    <th><%= t("calculator") %></th>     
    <th><%= t("action") %></th>
  </thead>
  <tbody>
    <% @coupons.each do |coupon|%>
      <tr id="<%= dom_id coupon %>">
        <td width="80px"><%= coupon.code %></td>
        <td width="200px"><%= coupon.description %></td>
        <td width="40px"><%= coupon.combine %></td>
        <td width="40px"><%= coupon.usage_limit %></td>
        <td width="70px"><%= coupon.expires_at.to_s(:short_date) if coupon.expires_at %></td>
        <td width="120px"><%= coupon.calculator.to_s %></td>
        <td>
        	<%= link_to_edit coupon %> &nbsp;
        	<%= link_to_delete coupon %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 app/views/admin/coupons/index.html.erb
spree-0.9.4 app/views/admin/coupons/index.html.erb
spree-0.9.3 app/views/admin/coupons/index.html.erb
spree-0.9.2 app/views/admin/coupons/index.html.erb
spree-0.9.1 app/views/admin/coupons/index.html.erb
spree-0.9.0 app/views/admin/coupons/index.html.erb