From e1c35832f004e4a9faf91cb942dfb24c81cfd672 Mon Sep 17 00:00:00 2001
From: "Krzysztof Gacek (Harvel)" <59796176+Harvel218@users.noreply.github.com>
Date: Fri, 14 Jan 2022 09:25:33 +0100
Subject: [PATCH] fix reading unavaiable and not needed css (#413)
---
src/Resources/views/CrudUi/create.html.twig | 8 --------
src/Resources/views/CrudUi/update.html.twig | 8 --------
src/Resources/views/layout.html.twig | 13 -------------
.../bundles/SyliusShopBundle/layout.html.twig | 2 --
4 files changed, 31 deletions(-)
diff --git a/src/Resources/views/CrudUi/create.html.twig b/src/Resources/views/CrudUi/create.html.twig
index 510c118bf..98ae01951 100755
--- a/src/Resources/views/CrudUi/create.html.twig
+++ b/src/Resources/views/CrudUi/create.html.twig
@@ -20,11 +20,3 @@
{{ sonata_block_render_event(event_prefix ~ '.after_content', {'resource': resource}) }}
{% endblock %}
-
-{% block stylesheets %}
- {{ parent() }}
-
-
-
- {{ sonata_block_render_event(event_prefix ~ '.stylesheets') }}
-{% endblock %}
diff --git a/src/Resources/views/CrudUi/update.html.twig b/src/Resources/views/CrudUi/update.html.twig
index ad01925d4..bb2f65af1 100755
--- a/src/Resources/views/CrudUi/update.html.twig
+++ b/src/Resources/views/CrudUi/update.html.twig
@@ -21,11 +21,3 @@
{{ sonata_block_render_event(event_prefix ~ '.after_content', {'resource': resource}) }}
{% endblock %}
-
-{% block stylesheets %}
- {{ parent() }}
-
-
-
- {{ sonata_block_render_event(event_prefix ~ '.stylesheets') }}
-{% endblock %}
diff --git a/src/Resources/views/layout.html.twig b/src/Resources/views/layout.html.twig
index b1e2d0717..a1356ff3d 100644
--- a/src/Resources/views/layout.html.twig
+++ b/src/Resources/views/layout.html.twig
@@ -1,14 +1 @@
{% extends '@SyliusAdmin/layout.html.twig' %}
-
-{% block stylesheets %}
- {{ parent() }}
-
- {% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'bundles/bitbagsyliuscmsplugin/css/style.css'} %}
-{% endblock %}
-
-
-{% block javascripts %}
- {{ parent() }}
-
- {{ sonata_block_render_event(event_prefix ~ '.javascripts') }}
-{% endblock %}
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig
index 2ee28cefe..73689e292 100755
--- a/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig
+++ b/tests/Application/templates/bundles/SyliusShopBundle/layout.html.twig
@@ -70,8 +70,6 @@
}
- {% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'assets/shop/css/style.css'} %}
-
{{ sonata_block_render_event('sylius.shop.layout.stylesheets') }}
{{ sylius_template_event('sylius.shop.layout.stylesheets') }}
{% endblock %}