From 8731bdfce098f6927c0e88af74907c546c8afb72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pysiak?= Date: Fri, 20 Sep 2024 11:56:32 +0200 Subject: [PATCH] remove templates --- .../Gateways/paymentGateways.html.twig | 5 --- .../SyliusAdminBundle/_scripts.html.twig | 2 - .../SyliusAdminBundle/_styles.html.twig | 2 - .../Checkout/SelectPayment/_choice.html.twig | 18 --------- .../Common/Order/_addresses.html.twig | 23 ----------- .../Common/Order/_payments.html.twig | 29 -------------- .../SyliusShopBundle/Order/thankYou.html.twig | 40 ------------------- .../SyliusShopBundle/_scripts.html.twig | 2 - .../SyliusShopBundle/_styles.html.twig | 2 - .../TwigBundle/Exception/error.html.twig | 1 - .../TwigBundle/Exception/error404.html.twig | 1 - .../TwigBundle/Exception/error500.html.twig | 1 - 12 files changed, 126 deletions(-) delete mode 100644 templates/bundles/SyliusAdminBundle/PaymentMethod/Gateways/paymentGateways.html.twig delete mode 100644 templates/bundles/SyliusAdminBundle/_scripts.html.twig delete mode 100644 templates/bundles/SyliusAdminBundle/_styles.html.twig delete mode 100644 templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig delete mode 100644 templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig delete mode 100644 templates/bundles/SyliusShopBundle/Common/Order/_payments.html.twig delete mode 100644 templates/bundles/SyliusShopBundle/Order/thankYou.html.twig delete mode 100644 templates/bundles/SyliusShopBundle/_scripts.html.twig delete mode 100644 templates/bundles/SyliusShopBundle/_styles.html.twig delete mode 100644 templates/bundles/TwigBundle/Exception/error.html.twig delete mode 100644 templates/bundles/TwigBundle/Exception/error404.html.twig delete mode 100644 templates/bundles/TwigBundle/Exception/error500.html.twig diff --git a/templates/bundles/SyliusAdminBundle/PaymentMethod/Gateways/paymentGateways.html.twig b/templates/bundles/SyliusAdminBundle/PaymentMethod/Gateways/paymentGateways.html.twig deleted file mode 100644 index ea0e1d4b95..0000000000 --- a/templates/bundles/SyliusAdminBundle/PaymentMethod/Gateways/paymentGateways.html.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% for name, gateway in gatewayFactories %} - - {{ gateway|trans }} - -{% endfor %} diff --git a/templates/bundles/SyliusAdminBundle/_scripts.html.twig b/templates/bundles/SyliusAdminBundle/_scripts.html.twig deleted file mode 100644 index 033a791243..0000000000 --- a/templates/bundles/SyliusAdminBundle/_scripts.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{{ encore_entry_script_tags('admin-entry', null, 'admin') }} -{{ encore_entry_script_tags('app-admin-entry', null, 'app.admin') }} diff --git a/templates/bundles/SyliusAdminBundle/_styles.html.twig b/templates/bundles/SyliusAdminBundle/_styles.html.twig deleted file mode 100644 index 663dced392..0000000000 --- a/templates/bundles/SyliusAdminBundle/_styles.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{{ encore_entry_link_tags('admin-entry', null, 'admin') }} -{{ encore_entry_link_tags('app-admin-entry', null, 'app.admin') }} diff --git a/templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig b/templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig deleted file mode 100644 index 2c841237e0..0000000000 --- a/templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig +++ /dev/null @@ -1,18 +0,0 @@ -
-
-
- {{ form_widget(form, sylius_test_form_attribute('payment-method-select')) }} -
-
-
- {{ form_label(form, null, {'label_attr': {'data-test-payment-method-label': ''}}) }} - {% if method.description is not null %} -
-

{{ method.description }}

-
- {% endif %} - {% if method.gatewayConfig.factoryName == 'sylius.pay_pal' %} - {{ render(controller('Sylius\\PayPalPlugin\\Controller\\PayPalButtonsController::renderPaymentPageButtonsAction', {'orderId': order.id})) }} - {% endif %} -
-
diff --git a/templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig b/templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig deleted file mode 100644 index 6d7ee9f4d3..0000000000 --- a/templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig +++ /dev/null @@ -1,23 +0,0 @@ -
-
-
-
{{ 'sylius.ui.billing_address'|trans }}
- {% include '@SyliusShop/Common/_address.html.twig' with {'address': order.billingAddress} %} -
- {% if order.isShippingRequired() %} -
-
{{ 'sylius.ui.shipping_address'|trans }}
- {% include '@SyliusShop/Common/_address.html.twig' with {'address': order.shippingAddress} %} -
- {% endif %} -
-
-{% if sylius_is_billing_address_missing(order) %} -
- -
-
{{ 'sylius.pay_pal.missing_billing_address_header'|trans }}
-

{{ 'sylius.pay_pal.missing_billing_address_content'|trans }}

-
-
-{% endif %} diff --git a/templates/bundles/SyliusShopBundle/Common/Order/_payments.html.twig b/templates/bundles/SyliusShopBundle/Common/Order/_payments.html.twig deleted file mode 100644 index 1591a7dfda..0000000000 --- a/templates/bundles/SyliusShopBundle/Common/Order/_payments.html.twig +++ /dev/null @@ -1,29 +0,0 @@ -{% import "@SyliusShop/Common/Macro/money.html.twig" as money %} - -{% set state = order.paymentState %} - -{% if state != 'cart' %} - {% include "@SyliusShop/Common/Order/Label/PaymentState/orderPaymentState.html.twig" %} -{% endif %} - -{% for payment in order.payments %} - {% set state = payment.state %} - -
- -
-
- {{ payment.method }} -
-

{{ money.format(payment.amount, payment.currencyCode) }}

- {% if payment.amount != payment.order.total and state == 'processing' %} - {{ 'sylius.pay_pal.different_amount'|trans }} - {% endif %} - {% if state != 'cart' %} -

- {% include "@SyliusShop/Common/Order/Label/PaymentState/singlePaymentState.html.twig" with { 'state': state } %} -

- {% endif %} -
-
-{% endfor %} diff --git a/templates/bundles/SyliusShopBundle/Order/thankYou.html.twig b/templates/bundles/SyliusShopBundle/Order/thankYou.html.twig deleted file mode 100644 index 3c29c3aba6..0000000000 --- a/templates/bundles/SyliusShopBundle/Order/thankYou.html.twig +++ /dev/null @@ -1,40 +0,0 @@ -{% extends '@SyliusShop/layout.html.twig' %} - -{% block content %} - -
-
-

- {% set lastPayment = order.payments.last() %} - -
- {{ 'sylius.ui.thank_you'|trans }} -
{{ 'sylius.ui.placed_an_order'|trans }}
-
-

- - {{ sylius_template_event('sylius.shop.order.thank_you.after_message', {'order': order}) }} - - {% if lastPayment != false %} - {% if lastPayment.method.instructions is not null %} -
- {{ lastPayment.method.instructions }} -
- {% endif %} - - {% endif %} - - {% if order.customer.user is not null %} - {{ 'sylius.ui.view_order'|trans }} - {% else %} - {% if lastPayment.state != 'completed' %} - {{ 'sylius.ui.change_payment_method'|trans }} - {% endif %} - - - {{ 'sylius.ui.create_an_account'|trans }} - - {% endif %} -
-
-{% endblock %} diff --git a/templates/bundles/SyliusShopBundle/_scripts.html.twig b/templates/bundles/SyliusShopBundle/_scripts.html.twig deleted file mode 100644 index 67f721b958..0000000000 --- a/templates/bundles/SyliusShopBundle/_scripts.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{{ encore_entry_script_tags('shop-entry', null, 'shop') }} -{{ encore_entry_script_tags('app-shop-entry', null, 'app.shop') }} diff --git a/templates/bundles/SyliusShopBundle/_styles.html.twig b/templates/bundles/SyliusShopBundle/_styles.html.twig deleted file mode 100644 index 783ef0926e..0000000000 --- a/templates/bundles/SyliusShopBundle/_styles.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{{ encore_entry_link_tags('shop-entry', null, 'shop') }} -{{ encore_entry_link_tags('app-shop-entry', null, 'app.shop') }} diff --git a/templates/bundles/TwigBundle/Exception/error.html.twig b/templates/bundles/TwigBundle/Exception/error.html.twig deleted file mode 100644 index f1ee1a4aa5..0000000000 --- a/templates/bundles/TwigBundle/Exception/error.html.twig +++ /dev/null @@ -1 +0,0 @@ -{% include '@SyliusShop/error.html.twig' %} diff --git a/templates/bundles/TwigBundle/Exception/error404.html.twig b/templates/bundles/TwigBundle/Exception/error404.html.twig deleted file mode 100644 index adcff81601..0000000000 --- a/templates/bundles/TwigBundle/Exception/error404.html.twig +++ /dev/null @@ -1 +0,0 @@ -{% include '@SyliusShop/error404.html.twig' %} diff --git a/templates/bundles/TwigBundle/Exception/error500.html.twig b/templates/bundles/TwigBundle/Exception/error500.html.twig deleted file mode 100644 index c7c1d66200..0000000000 --- a/templates/bundles/TwigBundle/Exception/error500.html.twig +++ /dev/null @@ -1 +0,0 @@ -{% include '@SyliusShop/error500.html.twig' %}