app/views/plugins/ecommerce/admin/prices/form.html.erb in camaleon_ecommerce-1.2 vs app/views/plugins/ecommerce/admin/prices/form.html.erb in camaleon_ecommerce-1.2.1
- old
+ new
@@ -1,36 +1,36 @@
<div class="page-title">
- <h2><span class="fa fa-usd"></span> <%= !@price[:id].present? ? t('plugin.ecommerce.add_price') : "#{t('plugin.ecommerce.edit_price')}: #{@price[:code]}" %></h2>
+ <h2><span class="fa fa-usd"></span> <%= !@price[:id].present? ? t('plugins.ecommerce.add_price') : "#{t('plugins.ecommerce.edit_price')}: #{@price[:code]}" %></h2>
</div>
<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading ui-draggable-handle">
- <h3 class="panel-title"><%= t('plugin.ecommerce.form_price') %></h3>
+ <h3 class="panel-title"><%= t('plugins.ecommerce.form_price') %></h3>
</div>
<%#= form_tag ({url:{action: @price.blank? ? :create : :update}}, :method => "post", :class => "form" ) do %>
<%= form_tag(@price[:id].present? ? {action: :update, id: @price[:id]} : {action: :create}, :method => @price[:id].present? ? "patch" :"post", :class => "validate-price") do %>
<div class="panel-body">
<div class="row">
<div class="form-group col-md-6">
- <label><%= t('plugin.ecommerce.table.code') %></label><br>
+ <label><%= t('plugins.ecommerce.table.code') %></label><br>
<%= text_field_tag( "price[code]", @price[:code], class: "form-control required") %>
</div>
<div class="form-group col-md-6">
- <label><%= t('plugin.ecommerce.product.price') %> </label> (<%= current_site.current_unit %>)<br>
+ <label><%= t('plugins.ecommerce.product.price') %> </label> (<%= e_system_currency %>)<br>
<%= number_field_tag( "price[price]", @price[:price], class: "form-control required") %>
</div>
<div class="form-group col-md-6">
- <label><%= t('plugin.ecommerce.table.min_weight') %> </label> (<%= current_site.current_weight %>)<br>
+ <label><%= t('plugins.ecommerce.table.min_weight') %> </label> (<%= current_site.current_weight %>)<br>
<%= number_field_tag( "price[min_weight]", @price[:min_weight], class: "form-control required") %>
</div>
<div class="form-group col-md-6">
- <label><%= t('plugin.ecommerce.table.max_weight') %> </label> (<%= current_site.current_weight %>)<br>
+ <label><%= t('plugins.ecommerce.table.max_weight') %> </label> (<%= current_site.current_weight %>)<br>
<%= number_field_tag( "price[max_weight]", @price[:max_weight], class: "form-control required") %>
</div>
</div>
</div>