<%= t('plugin.ecommerce.coupons') %>

<%= link_to raw(" #{t('plugin.ecommerce.add_coupons')}"), {action: :new}, class: "btn btn-primary pull-right" %>
<% @coupons.each do |row| options = row.options row = row.decorate %> <% end %>
<%= 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') %>
<%= row.the_code %> <%= row.name %> <%= raw row.the_status %> <%= row.the_amount %> <%= options[:min_cart_total] %> <%= options[:expirate_date] %> <%= options[:allowed_applications] %> <%= options[:used_applications] || 0 %> <%= link_to raw(''), {action: :edit, id: row.id}, class: "btn btn-default btn-xs", title: "#{t('camaleon_cms.admin.button.edit')}" %>
<%= 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 %>