Sha256: 9a6cfd4845688d9587f080b88cfef21bd2cb87833a2ed61ef54789a92173572b
Contents?: true
Size: 1.91 KB
Versions: 1
Compression:
Stored size: 1.91 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
camaleon_ecommerce-0.0.4 | app/views/plugins/ecommerce/admin/prices/index.html.erb |