Add link into success tab

to go back to previous step and edit details once completed
This commit is contained in:
Jean-Baptiste Bellet
2021-08-04 10:38:32 +02:00
committed by Matt-Yorkley
parent 66892ed51a
commit c286189225
2 changed files with 7 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
flex-direction: column;
justify-content: center;
span {
span, span > a {
font-size: 1.3rem;
@include headingFont;
}
@@ -13,7 +13,7 @@
background-color: $white;
border-bottom: 5px solid $min-accessible-grey;
span {
span, span > a {
color: $min-accessible-grey;
}
}
@@ -21,7 +21,7 @@
&.selected {
background-color: $ofn-brand;
span {
span, span > a {
color: $white;
text-decoration: underline;
}

View File

@@ -1,10 +1,12 @@
%div.flex
%div.columns.three.text-center.checkout-tab{"class": [("selected" if @checkout_step == "details"), ("success" unless @checkout_step == "details")]}
%span
= t("split_checkout.your_details")
= link_to_if (@checkout_step != "details"), t("split_checkout.your_details"), main_app.checkout_step_path(:details), {} do
= t("split_checkout.your_details")
%div.columns.three.text-center.checkout-tab{"class": [("selected" if @checkout_step == "payment"), ("success" if @checkout_step == "summary")]}
%span
= t("split_checkout.payment_method")
= link_to_if (@checkout_step != "payment"), t("split_checkout.payment_method"), main_app.checkout_step_path(:payment), {} do
= t("split_checkout.payment_method")
%div.columns.three.text-center.checkout-tab{"class": ("selected" if @checkout_step == "summary")}
%span
= t("split_checkout.order_summary")