mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Add already_opened on each step
This commit is contained in:
3
app/views/split_checkout/_already_ordered.html.haml
Normal file
3
app/views/split_checkout/_already_ordered.html.haml
Normal 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"))
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user