<%= t('plugin.ecommerce.table.code') %> |
<%= t('plugin.ecommerce.table.name') %> |
<%= t('plugin.ecommerce.table.status') %> |
<%= t('plugin.ecommerce.table.amount') %> |
<%= t('plugin.ecommerce.table.min_cart_total') %> |
<%= t('plugin.ecommerce.table.expiration_date') %> |
<%= t('plugin.ecommerce.table.allowed_applications') %> |
<%= t('plugin.ecommerce.table.used_applications') %> |
<%= t('plugin.ecommerce.table.actions') %> |
<%
@coupons.each do |row|
options = row.options
row = row.decorate
%>
<%= row.the_code %> |
<%= row.name %> |
<%= raw row.the_status %> |
<%= row.the_amount %> |
<%= options[:min_cart_total] %> |
<%= options[:expirate_date] %> |
<%= options[:allowed_applications] %> |
<%= row.used_applications %> |
<%= link_to raw(''), {action: :edit, id: row.id}, class: "btn btn-default btn-xs", title: "#{t('camaleon_cms.admin.button.edit')}" %>
|
<% end %>
<%= content_tag("div", raw(t('camaleon_cms.admin.message.data_found_list')), class: "alert alert-warning") if @coupons.empty? %>
<%= will_paginate @coupons, renderer: BootstrapPagination::Rails %>