Sha256: 6fb4a3e066a2525096c216e68200657c4ef6c2744f50e8dc20386e297452853d
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
<%= render 'nav' %> <h1>Listing Coupons</h1> <table> <thead> <tr> <th>Stripe</th> <th>Duration</th> <th>Amount off</th> <th>Currency</th> <th>Duration in months</th> <th>Max redemptions</th> <th>Percent off</th> <th>Redeem by</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @coupons.each do |coupon| %> <tr> <td><%= coupon.stripe_id %></td> <td><%= coupon.duration %></td> <td><%= coupon.amount_off %></td> <td><%= coupon.currency %></td> <td><%= coupon.duration_in_months %></td> <td><%= coupon.max_redemptions %></td> <td><%= coupon.percent_off %></td> <td><%= coupon.redeem_by %></td> <td><%= link_to 'Show', admin_coupon_path(coupon) %></td> <td><%= link_to 'Edit', edit_admin_coupon_path(coupon) %></td> <td><%= link_to 'Destroy', admin_coupon_path(coupon), method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </tbody> </table> <br> <%= link_to 'New Coupon', new_admin_coupon_path %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tang-0.0.1 | app/views/tang/admin/coupons/index.html.erb |