Add already_opened on each step

This commit is contained in:
Jean-Baptiste Bellet
2022-03-17 10:22:38 +01:00
parent 13a45557a4
commit ac361d3b64
4 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
.already-ordered
.panel.medium-6
= t("split_checkout.already_ordered.message_html", cart: link_to(t('split_checkout.already_ordered.cart'), "#{main_app.cart_path}#bought-products"))

View File

@@ -1,4 +1,5 @@
%checkout.row#checkout
.small-12.medium-12.columns
= render partial: "split_checkout/tabs"
= render partial: "split_checkout/already_ordered" if @already_ordered
= render partial: "split_checkout/form"

View File

@@ -58,6 +58,20 @@
}
}
.already-ordered {
.panel {
margin-top: 3rem;
background-color: $grey-250;
border: 1px solid $tiny-blue;
color: $grey-700;
&.medium-6, &.medium-10 {
margin-right: auto;
margin-left: auto;
}
}
}
.checkout-step {
margin-top: 3rem;

View File

@@ -1745,6 +1745,9 @@ en:
your_details_without_number: Your details
payment_method_without_number: Payment method
order_summary_without_number: Order summary
already_ordered:
cart: "cart"
message_html: "You have an order for this order cycle already. Check the %{cart} to see the items you ordered before. You can also cancel items as long as the order cycle is open."
step1:
your_details:
title: Your details