mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
-# Prevent Turbo pre-fetch which changes cart state
|
|
.flex{'data-turbo-prefetch': "false"}
|
|
.columns.three.text-center.checkout-tab{"class": [("selected" if checkout_step?(:details)), ("success" unless checkout_step?(:details))]}
|
|
%div
|
|
%span.checkout-tab-number
|
|
1 -
|
|
%span.checkout-tab-label
|
|
= link_to_unless checkout_step?(:details), t("checkout.your_details_without_number"), main_app.checkout_step_path(:details) do
|
|
= t("checkout.your_details_without_number")
|
|
.columns.three.text-center.checkout-tab{"class": [("selected" if checkout_step?(:payment)), ("success" if checkout_step?(:summary))]}
|
|
%div
|
|
%span.checkout-tab-number
|
|
2 -
|
|
%span.checkout-tab-label
|
|
= link_to_if checkout_step?(:summary), t("checkout.payment_method_without_number"), main_app.checkout_step_path(:payment) do
|
|
= t("checkout.payment_method_without_number")
|
|
.columns.three.text-center.checkout-tab{"class": ("selected" if checkout_step?(:summary))}
|
|
%div
|
|
%span.checkout-tab-number
|
|
3 -
|
|
%span.checkout-tab-label
|
|
= t("checkout.order_summary_without_number")
|