diff --git a/backend/app/assets/javascripts/spree/backend/shipments.js b/backend/app/assets/javascripts/spree/backend/shipments.js index 2ab3d5a7b12..d34c7cfa9e5 100644 --- a/backend/app/assets/javascripts/spree/backend/shipments.js +++ b/backend/app/assets/javascripts/spree/backend/shipments.js @@ -53,7 +53,7 @@ adjustShipmentItems = function(shipment_number, variant_id, quantity){ json = response.responseJSON; message = json.error; for (error in json.errors) { - message += '
' + json.errors[error].join(); + message += '
' + json.errors[error].join(); } window.show_flash('error', message); } diff --git a/backend/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs b/backend/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs index c526b001987..1841126db70 100644 --- a/backend/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +++ b/backend/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs @@ -9,7 +9,7 @@ {{ line_item.variant.name }}
{{#if line_item.variant.options_text }} - {{ line_item.variant.options_text }}
+ {{ line_item.variant.options_text }}
{{/if}} {{ t "sku" }}: {{ line_item.variant.sku }} diff --git a/backend/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs b/backend/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs index 60dcc671fcd..3292a3ab518 100644 --- a/backend/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +++ b/backend/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs @@ -1,8 +1,8 @@
- - + + diff --git a/backend/app/helpers/spree/admin/adjustments_helper.rb b/backend/app/helpers/spree/admin/adjustments_helper.rb index b32df21913a..79370fa6f4f 100644 --- a/backend/app/helpers/spree/admin/adjustments_helper.rb +++ b/backend/app/helpers/spree/admin/adjustments_helper.rb @@ -27,7 +27,7 @@ def display_line_item(line_item) parts << variant.product.name parts << "(#{variant.options_text})" if variant.options_text.present? parts << line_item.display_amount - safe_join(parts, "
".html_safe) + safe_join(parts, "
".html_safe) end def display_shipment(shipment) @@ -35,7 +35,7 @@ def display_shipment(shipment) "#{t('spree.shipment')} ##{shipment.number}", shipment.display_cost ] - safe_join(parts, "
".html_safe) + safe_join(parts, "
".html_safe) end def display_order(_order) diff --git a/backend/app/helpers/spree/admin/base_helper.rb b/backend/app/helpers/spree/admin/base_helper.rb index 234505c6d9d..c77b1dd2c9f 100644 --- a/backend/app/helpers/spree/admin/base_helper.rb +++ b/backend/app/helpers/spree/admin/base_helper.rb @@ -17,7 +17,7 @@ def error_message_on(object, method, _options = {}) obj = object.respond_to?(:errors) ? object : instance_variable_get("@#{object}") if obj && obj.errors[method].present? - errors = safe_join(obj.errors[method], "
".html_safe) + errors = safe_join(obj.errors[method], "
".html_safe) content_tag(:span, errors, class: 'formError') else '' diff --git a/backend/app/helpers/spree/admin/stock_movements_helper.rb b/backend/app/helpers/spree/admin/stock_movements_helper.rb index dc8db0b0ded..4b1328ffbca 100644 --- a/backend/app/helpers/spree/admin/stock_movements_helper.rb +++ b/backend/app/helpers/spree/admin/stock_movements_helper.rb @@ -23,7 +23,7 @@ def display_variant(stock_movement) variant = stock_movement.stock_item.variant output = [variant.name] output << variant.options_text unless variant.options_text.blank? - safe_join(output, "
".html_safe) + safe_join(output, "
".html_safe) end end end diff --git a/backend/app/views/spree/admin/adjustment_reasons/index.html.erb b/backend/app/views/spree/admin/adjustment_reasons/index.html.erb index 5d488efca24..110672ae72f 100644 --- a/backend/app/views/spree/admin/adjustment_reasons/index.html.erb +++ b/backend/app/views/spree/admin/adjustment_reasons/index.html.erb @@ -17,9 +17,9 @@ <% if @adjustment_reasons.any? %>
{{ t "name" }}
- - - + + + diff --git a/backend/app/views/spree/admin/adjustment_reasons/shared/_form.html.erb b/backend/app/views/spree/admin/adjustment_reasons/shared/_form.html.erb index 96529f90383..567c5608e64 100644 --- a/backend/app/views/spree/admin/adjustment_reasons/shared/_form.html.erb +++ b/backend/app/views/spree/admin/adjustment_reasons/shared/_form.html.erb @@ -1,12 +1,12 @@
<%= f.field_container :name do %> - <%= f.label :name, class: 'required' %>
+ <%= f.label :name, class: 'required' %>
<%= f.text_field :name, class: 'fullwidth' %> <% end %> <%= f.field_container :code do %> - <%= f.label :code, class: 'required' %>
+ <%= f.label :code, class: 'required' %>
<%= f.text_field :code, class: 'fullwidth' %> <% end %> diff --git a/backend/app/views/spree/admin/adjustments/_form.html.erb b/backend/app/views/spree/admin/adjustments/_form.html.erb index 56e15864560..eaffbfc9246 100644 --- a/backend/app/views/spree/admin/adjustments/_form.html.erb +++ b/backend/app/views/spree/admin/adjustments/_form.html.erb @@ -19,7 +19,7 @@
<%= f.field_container :label do %> - <%= f.label :adjustment_reason_id %>
+ <%= f.label :adjustment_reason_id %>
<%= f.collection_select(:adjustment_reason_id, reasons_for(@adjustment), :id, :name, {include_blank: true}, {"data-placeholder" => t('spree.select_a_reason'), class: 'custom-select fullwidth'}) %> <% end %>
diff --git a/backend/app/views/spree/admin/adjustments/index.html.erb b/backend/app/views/spree/admin/adjustments/index.html.erb index f75ede7ead2..48c56c62f01 100644 --- a/backend/app/views/spree/admin/adjustments/index.html.erb +++ b/backend/app/views/spree/admin/adjustments/index.html.erb @@ -18,6 +18,6 @@ <%= button_tag t('spree.add_coupon_code'), id: "add_coupon_code", class: 'btn btn-primary' %>
<% end %> -<%= javascript_tag do -%> + diff --git a/backend/app/views/spree/admin/adjustments/new.html.erb b/backend/app/views/spree/admin/adjustments/new.html.erb index 8823a9f6499..1c9bf3131fb 100644 --- a/backend/app/views/spree/admin/adjustments/new.html.erb +++ b/backend/app/views/spree/admin/adjustments/new.html.erb @@ -3,7 +3,6 @@ <% admin_breadcrumb(link_to plural_resource_name(Spree::Adjustment), spree.admin_order_adjustments_path(@order)) %> <% admin_breadcrumb(t('spree.new_adjustment')) %> - <% content_for :page_actions do %> <% end %> diff --git a/backend/app/views/spree/admin/cancellations/index.html.erb b/backend/app/views/spree/admin/cancellations/index.html.erb index f15f9c1c54e..faf81b25e3f 100644 --- a/backend/app/views/spree/admin/cancellations/index.html.erb +++ b/backend/app/views/spree/admin/cancellations/index.html.erb @@ -4,12 +4,12 @@
- - - - - - + + + + + + diff --git a/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb b/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb index 7375fe3e572..cb4460bf273 100644 --- a/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +++ b/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb @@ -8,7 +8,7 @@ - <% unless return_items.all?(&:received?)%> + <% unless return_items.all?(&:received?) %> <% end %> <% if show_decision %> diff --git a/backend/app/views/spree/admin/customer_returns/new.html.erb b/backend/app/views/spree/admin/customer_returns/new.html.erb index 46d08eebded..8c84c0b5240 100644 --- a/backend/app/views/spree/admin/customer_returns/new.html.erb +++ b/backend/app/views/spree/admin/customer_returns/new.html.erb @@ -3,7 +3,6 @@ <% admin_breadcrumb(link_to plural_resource_name(Spree::CustomerReturn), spree.admin_order_customer_returns_url(@order)) %> <% admin_breadcrumb(t('spree.new_customer_return')) %> - <% content_for :page_actions do %> <% end %> diff --git a/backend/app/views/spree/admin/images/_image_row.html.erb b/backend/app/views/spree/admin/images/_image_row.html.erb index d421c41f638..2b92012fc14 100644 --- a/backend/app/views/spree/admin/images/_image_row.html.erb +++ b/backend/app/views/spree/admin/images/_image_row.html.erb @@ -1,5 +1,4 @@ - - <% end # @product.has_variants? %> + <% end %> +
<%= Spree::ReturnItem.human_attribute_name(:exchange_variant) %> <%= Spree::ReturnItem.human_attribute_name(:acceptance_status_errors) %> <%= Spree::ReturnItem.human_attribute_name(:reception_status) %><%= Spree::ReturnItem.human_attribute_name(:item_received?) %>
<% if can?(:update_positions, Spree::Image) %> @@ -28,7 +27,7 @@ <%= f.select :viewable_id, options_for_select(@variants, image.viewable_id), {}, class: 'select2 fullwidth', autocomplete: "off" %> <% end %> <%= fields_for image do |f| %> diff --git a/backend/app/views/spree/admin/images/edit.html.erb b/backend/app/views/spree/admin/images/edit.html.erb index 9cefc632e3a..bd9e48811b3 100644 --- a/backend/app/views/spree/admin/images/edit.html.erb +++ b/backend/app/views/spree/admin/images/edit.html.erb @@ -5,7 +5,6 @@ <% admin_breadcrumb(link_to plural_resource_name(Spree::Image), admin_product_images_path(@product)) %> <% admin_breadcrumb(@image.filename) %> - <% content_for :page_actions do %>
  • <%= link_to t('spree.back_to_images_list'), admin_product_images_url(@product), class: 'btn btn-primary' %>
  • <% end %> diff --git a/backend/app/views/spree/admin/images/index.html.erb b/backend/app/views/spree/admin/images/index.html.erb index cbde4e00d2b..f20e49a5996 100644 --- a/backend/app/views/spree/admin/images/index.html.erb +++ b/backend/app/views/spree/admin/images/index.html.erb @@ -2,7 +2,6 @@ <% admin_breadcrumb(plural_resource_name(Spree::Image)) %> - <% content_for :page_actions do %> <% if can?(:create, Spree::Image) %>
  • diff --git a/backend/app/views/spree/admin/option_types/_form.html.erb b/backend/app/views/spree/admin/option_types/_form.html.erb index 3bb4e4ba934..02d7aff2fd1 100644 --- a/backend/app/views/spree/admin/option_types/_form.html.erb +++ b/backend/app/views/spree/admin/option_types/_form.html.erb @@ -1,7 +1,7 @@
    <%= f.field_container :name do %> - <%= f.label :name, class: 'required' %>
    + <%= f.label :name, class: 'required' %>
    <%= f.text_field :name, class: "fullwidth" %> <%= f.error_message_on :name %> <% end %> @@ -9,7 +9,7 @@
    <%= f.field_container :presentation do %> - <%= f.label :presentation, class: 'required' %>
    + <%= f.label :presentation, class: 'required' %>
    <%= f.text_field :presentation, class: "fullwidth" %> <%= f.error_message_on :presentation %> <% end %> diff --git a/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb b/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb index 7fad0c35ee3..a210546fa45 100644 --- a/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb +++ b/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb @@ -1,4 +1,4 @@ -
  • <% if f.object.persisted? %> diff --git a/backend/app/views/spree/admin/option_types/edit.html.erb b/backend/app/views/spree/admin/option_types/edit.html.erb index 69001b6c5e1..1431df514df 100644 --- a/backend/app/views/spree/admin/option_types/edit.html.erb +++ b/backend/app/views/spree/admin/option_types/edit.html.erb @@ -2,7 +2,6 @@ <% admin_breadcrumb(link_to plural_resource_name(Spree::OptionType), spree.admin_option_types_path) %> <% admin_breadcrumb(@option_type.name) %> - <% content_for :page_actions do %>
  • diff --git a/backend/app/views/spree/admin/option_types/index.html.erb b/backend/app/views/spree/admin/option_types/index.html.erb index d89cf3bc8fc..0ae7ab47ae6 100644 --- a/backend/app/views/spree/admin/option_types/index.html.erb +++ b/backend/app/views/spree/admin/option_types/index.html.erb @@ -1,7 +1,6 @@ <% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %> <% admin_breadcrumb(plural_resource_name(Spree::OptionType)) %> - <% content_for :page_actions do %> <% if can?(:create, Spree::OptionType) %>