Sha256: 0db653a5e3857da072930c3f26b01e84fa73815818705fa3664033e72eada564
Contents?: true
Size: 1.9 KB
Versions: 2
Compression:
Stored size: 1.9 KB
Contents
<div class="panel panel-default"> <div class="panel-heading"> <h4><span class="fa fa-usd"></span> <%= t('plugin.ecommerce.product.price') %></h4> <%= link_to raw("<i class='fa fa-plus'></i> #{t('plugin.ecommerce.add_price')}"), {action: :new}, class: "btn btn-primary pull-right" %> </div> <div class="panel-body"> <table class="table"> <thead> <tr> <th><%= t('plugin.ecommerce.table.code')%></th> <th><%= t('plugin.ecommerce.product.price')%></th> <th><%= t('plugin.ecommerce.table.min_weight') %></th> <th><%= t('plugin.ecommerce.table.max_weight') %></th> <th><%= t('plugin.ecommerce.table.actions') %></th> </tr> </thead> <tbody> <% @prices.each do |id, row| %> <tr> <td><%= row[:code] %></td> <td><%= current_site.current_unit %> <%= row[:price] %></td> <td><%= row[:min_weight] %> <%= current_site.current_weight %></td> <td><%= row[:max_weight] %> <%= current_site.current_weight %></td> <td> <%= link_to raw('<i class="fa fa-edit"></i>'), {action: :edit, id: row[:id] }, class: "btn btn-default btn-xs", title: "#{t('camaleon_cms.admin.button.edit')}" %> <%= link_to raw('<i class="fa fa-times"></i>'), {action: :destroy, id: row[:id] }, method: :delete, data: { confirm: t('camaleon_cms.admin.message.delete') }, class: "btn btn-danger btn-xs", title: "#{t('camaleon_cms.admin.button.delete')}" %> </td> </tr> <% end %> </tbody> </table> <%= content_tag("div", raw(t('camaleon_cms.admin.message.data_found_list')), class: "alert alert-warning") if @prices.empty? %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
camaleon_ecommerce-1.2 | app/views/plugins/ecommerce/admin/prices/index.html.erb |
camaleon_ecommerce-1.1 | app/views/plugins/ecommerce/admin/prices/index.html.erb |