-
|
<% 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 %>
|
- <% end # @product.has_variants? %>
+ <% 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) %>
diff --git a/backend/app/views/spree/admin/orders/_adjustments.html.erb b/backend/app/views/spree/admin/orders/_adjustments.html.erb
index c84400f72d5..10e587d635a 100644
--- a/backend/app/views/spree/admin/orders/_adjustments.html.erb
+++ b/backend/app/views/spree/admin/orders/_adjustments.html.erb
@@ -3,8 +3,8 @@
- | <%= Spree::Adjustment.human_attribute_name(:name)%> |
- <%= Spree::Adjustment.human_attribute_name(:amount)%> |
+ <%= Spree::Adjustment.human_attribute_name(:name) %> |
+ <%= Spree::Adjustment.human_attribute_name(:amount) %> |
diff --git a/backend/app/views/spree/admin/orders/_carton.html.erb b/backend/app/views/spree/admin/orders/_carton.html.erb
index e1e0fe3fe65..27b63ce97e8 100644
--- a/backend/app/views/spree/admin/orders/_carton.html.erb
+++ b/backend/app/views/spree/admin/orders/_carton.html.erb
@@ -12,11 +12,11 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/backend/app/views/spree/admin/orders/_form.html.erb b/backend/app/views/spree/admin/orders/_form.html.erb
index b51b02eaf6e..48b6ea59853 100644
--- a/backend/app/views/spree/admin/orders/_form.html.erb
+++ b/backend/app/views/spree/admin/orders/_form.html.erb
@@ -8,12 +8,12 @@
<%= render "spree/admin/orders/order_details", { order: order } %>
- <%= javascript_tag do -%>
+
diff --git a/backend/app/views/spree/admin/orders/_line_items.html.erb b/backend/app/views/spree/admin/orders/_line_items.html.erb
index 6ed30cca0e7..17fec802fea 100644
--- a/backend/app/views/spree/admin/orders/_line_items.html.erb
+++ b/backend/app/views/spree/admin/orders/_line_items.html.erb
@@ -1,11 +1,11 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/backend/app/views/spree/admin/orders/_risk_analysis.html.erb b/backend/app/views/spree/admin/orders/_risk_analysis.html.erb
index d4c81936e5e..cdfbe77fe2c 100644
--- a/backend/app/views/spree/admin/orders/_risk_analysis.html.erb
+++ b/backend/app/views/spree/admin/orders/_risk_analysis.html.erb
@@ -2,10 +2,10 @@
- | <%= t('spree.risk')%> |
- <%= t('spree.status')%> |
+ <%= t('spree.risk') %> |
+ <%= t('spree.status') %> |
-
+
<%= t('spree.failed_payment_attempts') %>:
diff --git a/backend/app/views/spree/admin/orders/_shipment.html.erb b/backend/app/views/spree/admin/orders/_shipment.html.erb
index 5ddf1ab8273..f843a0d25e5 100644
--- a/backend/app/views/spree/admin/orders/_shipment.html.erb
+++ b/backend/app/views/spree/admin/orders/_shipment.html.erb
@@ -27,12 +27,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/backend/app/views/spree/admin/orders/cart.html.erb b/backend/app/views/spree/admin/orders/cart.html.erb
index 86a7de540d6..06f02b5fa8f 100644
--- a/backend/app/views/spree/admin/orders/cart.html.erb
+++ b/backend/app/views/spree/admin/orders/cart.html.erb
@@ -11,7 +11,6 @@
<% admin_breadcrumb(t('spree.cart')) %>
-
<%= render partial: 'spree/shared/error_messages', locals: { target: @order } %>
diff --git a/backend/app/views/spree/admin/orders/confirm.html.erb b/backend/app/views/spree/admin/orders/confirm.html.erb
index 35a52574b77..17e9c168421 100644
--- a/backend/app/views/spree/admin/orders/confirm.html.erb
+++ b/backend/app/views/spree/admin/orders/confirm.html.erb
@@ -2,7 +2,6 @@
<% admin_breadcrumb(t('spree.confirm_order')) %>
-
<%= render partial: 'spree/admin/orders/confirm/customer_details', locals: {order: @order} %>
<% if Spree::Order.checkout_step_names.include?(:delivery) %>
diff --git a/backend/app/views/spree/admin/orders/confirm/_customer_details.html.erb b/backend/app/views/spree/admin/orders/confirm/_customer_details.html.erb
index 2192d837a3e..71005ad5ebb 100644
--- a/backend/app/views/spree/admin/orders/confirm/_customer_details.html.erb
+++ b/backend/app/views/spree/admin/orders/confirm/_customer_details.html.erb
@@ -1,6 +1,6 @@
- <% @payment_methods.each do |method|%>
+ <% @payment_methods.each do |method| %>
|
<%= method.name %> |
@@ -53,7 +52,7 @@
<%= link_to_edit method.becomes(Spree::PaymentMethod), no_text: true %>
<% end %>
<% if can?(:destroy, method.becomes(Spree::PaymentMethod)) %>
- <%= link_to_delete method.becomes(Spree::PaymentMethod), no_text: true %>
+ <%= link_to_delete method.becomes(Spree::PaymentMethod), no_text: true %>
<% end %>
diff --git a/backend/app/views/spree/admin/payment_methods/new.html.erb b/backend/app/views/spree/admin/payment_methods/new.html.erb
index ff3da9f77b8..62df088d880 100644
--- a/backend/app/views/spree/admin/payment_methods/new.html.erb
+++ b/backend/app/views/spree/admin/payment_methods/new.html.erb
@@ -5,7 +5,6 @@
<% admin_breadcrumb(link_to plural_resource_name(Spree::PaymentMethod), spree.admin_payment_methods_path) %>
<% admin_breadcrumb(t('spree.new_payment_method')) %>
-
<% content_for :page_actions do %>
<% end %>
diff --git a/backend/app/views/spree/admin/payments/_form.html.erb b/backend/app/views/spree/admin/payments/_form.html.erb
index e659043b738..d669d4c9bd4 100644
--- a/backend/app/views/spree/admin/payments/_form.html.erb
+++ b/backend/app/views/spree/admin/payments/_form.html.erb
@@ -26,7 +26,7 @@
<% if method.source_required? %>
-
+
<%= render partial: "spree/admin/payments/source_forms/#{method.partial_name}",
locals: { payment_method: method, previous_cards: method.reusable_sources(@order) } %>
<% end %>
diff --git a/backend/app/views/spree/admin/payments/_list.html.erb b/backend/app/views/spree/admin/payments/_list.html.erb
index 2e808410793..d4fb62bf0ea 100644
--- a/backend/app/views/spree/admin/payments/_list.html.erb
+++ b/backend/app/views/spree/admin/payments/_list.html.erb
@@ -1,12 +1,12 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/backend/app/views/spree/admin/payments/_log_entries.html.erb b/backend/app/views/spree/admin/payments/_log_entries.html.erb
index 55899d1596c..48567e58001 100644
--- a/backend/app/views/spree/admin/payments/_log_entries.html.erb
+++ b/backend/app/views/spree/admin/payments/_log_entries.html.erb
@@ -1,8 +1,8 @@
-
-
-
+
+
+
diff --git a/backend/app/views/spree/admin/payments/credit.html.erb b/backend/app/views/spree/admin/payments/credit.html.erb
index 43d27437f63..e4189ac92d4 100644
--- a/backend/app/views/spree/admin/payments/credit.html.erb
+++ b/backend/app/views/spree/admin/payments/credit.html.erb
@@ -3,7 +3,6 @@
<% admin_breadcrumb(link_to plural_resource_name(Spree::Payment), spree.admin_order_payments_path(@order)) %>
<% admin_breadcrumb(Spree::Refund.model_name.human) %>
-
<%= form_tag do %>
<%= Spree::Refund.model_name.human %>
| | |