|
| 1 | +{% extends '@SyliusShop/layout.html.twig' %} |
| 2 | + |
| 3 | +{% block content %} |
| 4 | + <div class="ui hidden divider"></div> |
| 5 | + <div class="ui grid"> |
| 6 | + <div class="center aligned sixteen wide column"> |
| 7 | + <h1 class="ui icon header"> |
| 8 | + {% set lastPayment = order.payments.last() %} |
| 9 | + <i class="circular rocket icon"></i> |
| 10 | + <div class="content" id="sylius-thank-you" {{ sylius_test_html_attribute('thank-you') }}> |
| 11 | + {{ 'sylius.ui.thank_you'|trans }} |
| 12 | + <div class="sub header">{{ 'sylius.ui.placed_an_order'|trans }}</div> |
| 13 | + </div> |
| 14 | + </h1> |
| 15 | + |
| 16 | + {{ sylius_template_event('sylius.shop.order.thank_you.after_message', {'order': order}) }} |
| 17 | + |
| 18 | + {% if lastPayment != false %} |
| 19 | + {% if lastPayment.method.instructions is not null %} |
| 20 | + <div id="sylius-payment-method-instructions" class="ui segment" {{ sylius_test_html_attribute('payment-method-instructions') }}> |
| 21 | + {{ lastPayment.method.instructions }} |
| 22 | + </div> |
| 23 | + {% endif %} |
| 24 | + <div class="ui hidden divider"></div> |
| 25 | + {% endif %} |
| 26 | + |
| 27 | + {% if order.customer.user is not null %} |
| 28 | + <a href="{{ path('sylius_shop_account_order_show', {'number': order.number}) }}" id="sylius-show-order-in-account" class="ui large blue button" {{ sylius_test_html_attribute('show-order-in-account') }}>{{ 'sylius.ui.view_order'|trans }}</a> |
| 29 | + {% else %} |
| 30 | + {% if lastPayment.state != 'completed' %} |
| 31 | + <a href="{{ path('sylius_shop_order_show', {'tokenValue': order.tokenValue}) }}" id="payment-method-page" class="ui large blue button" {{ sylius_test_html_attribute('payment-method-page') }}>{{ 'sylius.ui.change_payment_method'|trans }}</a> |
| 32 | + {% endif %} |
| 33 | + <a href="{{ path('sylius_shop_register_after_checkout', {'tokenValue': order.tokenValue}) }}" class="ui large green button" {{ sylius_test_html_attribute('create-an-account') }}> |
| 34 | + <i class="signup icon"></i> |
| 35 | + {{ 'sylius.ui.create_an_account'|trans }} |
| 36 | + </a> |
| 37 | + {% endif %} |
| 38 | + </div> |
| 39 | + </div> |
| 40 | +{% endblock %} |
0 commit comments