app/views/plugins/ecommerce/admin/prices/index.html.erb in camaleon_ecommerce-1.2 vs app/views/plugins/ecommerce/admin/prices/index.html.erb in camaleon_ecommerce-1.2.1
- old
+ new
@@ -1,28 +1,28 @@
<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" %>
+ <h4><span class="fa fa-usd"></span> <%= t('plugins.ecommerce.shipping_prices') %></h4>
+ <%= link_to raw("<i class='fa fa-plus'></i> #{t('plugins.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>
+ <th><%= t('plugins.ecommerce.table.code')%></th>
+ <th><%= t('plugins.ecommerce.product.price')%></th>
+ <th><%= t('plugins.ecommerce.table.min_weight') %></th>
+ <th><%= t('plugins.ecommerce.table.max_weight') %></th>
+ <th><%= t('plugins.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><%= e_parse_price(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')}" %>