-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
428 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/Resources/views/bundles/SyliusShopBundle/Checkout/complete.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends '@SyliusShop/Checkout/layout.html.twig' %} | ||
|
||
{% form_theme form '@SyliusShop/Form/theme.html.twig' %} | ||
|
||
{% block content %} | ||
{{ sylius_template_event(['sylius.shop.checkout.complete.steps', 'sylius.shop.checkout.steps'], _context|merge({'active': 'complete', 'orderTotal': order.total})) }} | ||
|
||
<div class="ui padded segment"> | ||
{% include '@SyliusShop/Checkout/Complete/_header.html.twig' %} | ||
|
||
{{ sylius_template_event('sylius.shop.checkout.complete.after_content_header', {'order': order}) }} | ||
|
||
{% include '@SyliusShop/_flashes.html.twig' %} | ||
|
||
{{ form_start(form, {'action': path('sylius_shop_checkout_complete'), 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate'}}) }} | ||
{{ form_errors(form) }} | ||
<input type="hidden" name="_method" value="PUT" /> | ||
|
||
{{ sylius_template_event('sylius.shop.checkout.complete.summary', _context) }} | ||
|
||
<div class="ui hidden divider"></div> | ||
{% include '@SyliusShop/Checkout/Complete/_form.html.twig' %} | ||
|
||
{{ sylius_template_event('sylius.shop.checkout.complete.before_navigation', {'order': order}) }} | ||
|
||
{% if order.lastPayment.method.gatewayConfig.factoryName == 'sylius.pay_pal' %} | ||
{{ render(controller('Sylius\\PayPalPlugin\\Controller\\PayPalButtonsController:renderPayPalPaymentAction', {'orderId': order.id})) }} | ||
{% else %} | ||
{% include '@SyliusShop/Checkout/Complete/_navigation.html.twig' %} | ||
{% endif %} | ||
|
||
{{ form_row(form._token) }} | ||
{{ form_end(form, {'render_rest': false}) }} | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.