Skip to content

Commit

Permalink
Update steps-completed.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
sjcallender authored Sep 19, 2024
1 parent 30e5378 commit b2ace2a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/templates/_components/app/steps-completed.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<dl class="grid grid-cols-1 gap-6 p-4 bg-gray-200 rounded-lg xl:px-6">

{% if step == 'address' or step == 'shipping' or step == 'payment' %}
<div class="sm:grid sm:grid-cols-[65px_1fr] sm:gap-6">
<div class="sm:grid sm:grid-cols-[125px_1fr] sm:gap-6">
<dt class="flex justify-between items-start gap-4">
<span class="inline-block font-semibold text-black">
{{ 'User'|t('foster-checkout') }}
{{ 'Customer'|t('foster-checkout') }}
</span>
{% if not currentUser %}
<a href="#" class="inline-block underline text-[var(--brandColor)] sm:hidden">
<a href="{{ craft.fostercheckout.getPath('checkout') ~ '/email' }}" class="inline-block underline text-[var(--brandColor)] sm:hidden">
{{ 'Edit'|t('foster-checkout') }}
</a>
{% endif %}
Expand All @@ -27,12 +27,12 @@
{% endif %}

{% if step == 'shipping' or step == 'payment' %}
<div class="sm:grid sm:grid-cols-[65px_1fr] sm:gap-6">
<div class="sm:grid sm:grid-cols-[125px_1fr] sm:gap-6">
<dt class="flex justify-between items-start gap-4">
<span class="inline-block font-semibold text-black">
{{ 'Ship to'|t('foster-checkout') }}
{{ 'Shipping address'|t('foster-checkout') }}
</span>
<a href="#" class="inline-block underline text-[var(--brandColor)] sm:hidden">
<a href="{{ craft.fostercheckout.getPath('checkout') ~ '/address' }}" class="inline-block underline text-[var(--brandColor)] sm:hidden">
{{ 'Edit'|t('foster-checkout') }}
</a>
</dt>
Expand All @@ -47,10 +47,10 @@
{% endif %}

{% if step == 'payment' %}
<div class="sm:grid sm:grid-cols-[65px_1fr] sm:gap-6">
<div class="sm:grid sm:grid-cols-[125px_1fr] sm:gap-6">
<dt class="flex justify-between items-start gap-4">
<span class="inline-block font-semibold text-black">
{{ 'Method'|t('foster-checkout') }}
{{ 'Shipping method'|t('foster-checkout') }}
</span>
<a href="{{ craft.fostercheckout.getPath('checkout') ~ '/shipping' }}"
class="inline-block underline text-[var(--brandColor)] sm:hidden">
Expand All @@ -59,7 +59,7 @@
</dt>
<dd class="mt-1 sm:flex sm:justify-between sm:items-start sm:gap-4 sm:mt-0">
<p class="text-black">
{{ cart.shippingMethodName }} {{ cart.totalShippingCostAsCurrency }}
{{ cart.shippingMethodName }}
</p>
<a class="hidden sm:inline-block sm:underline sm:text-[var(--brandColor)]"
href="{{ craft.fostercheckout.getPath('checkout') ~ '/shipping' }}">
Expand Down

0 comments on commit b2ace2a

Please sign in to comment.