From 1c07947e73a834829919023739d63aabec2d8ed3 Mon Sep 17 00:00:00 2001 From: Krzysztof Kalisz Date: Thu, 20 Sep 2018 10:09:43 +0200 Subject: [PATCH] Fix product page layout and margins issues --- frontend/app/views/spree/products/_cart_form.html.erb | 6 +++--- frontend/app/views/spree/products/show.html.erb | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/app/views/spree/products/_cart_form.html.erb b/frontend/app/views/spree/products/_cart_form.html.erb index b55cba7a559..53cf6e0cce0 100644 --- a/frontend/app/views/spree/products/_cart_form.html.erb +++ b/frontend/app/views/spree/products/_cart_form.html.erb @@ -1,7 +1,7 @@ <%= form_for :order, html: { id: 'add-to-cart-form' } do |f| %>
<% if @product.variants_and_option_values(current_currency).any? %> -
+

<%= Spree.t(:variants) %>

    <% @product.variants_and_option_values(current_currency).each_with_index do |variant, index| %> @@ -34,7 +34,7 @@ <% end %> <% if @product.price_in(current_currency) && !@product.price.nil? %> -
    +

    <%= Spree.t(:price) %>

    @@ -59,7 +59,7 @@
    <% if @product.can_supply? %> -
    +
    <%= number_field_tag :quantity, 1, class: 'title form-control', min: 1 %>
    diff --git a/frontend/app/views/spree/products/show.html.erb b/frontend/app/views/spree/products/show.html.erb index fd22ac6bda1..588b1a551f6 100644 --- a/frontend/app/views/spree/products/show.html.erb +++ b/frontend/app/views/spree/products/show.html.erb @@ -2,7 +2,7 @@ <% cache cache_key_for_product do %>
    -
    +
    @@ -25,16 +25,16 @@
    -
    +
    -

    <%= @product.name %>

    +

    <%= @product.name %>

    <%= product_description(@product) %>
    -
    +
    <%= render partial: 'cart_form' %>