From 0db1c51f2e48714f923bf30789d8f0ed998470e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Wed, 25 Sep 2024 13:46:38 +0200 Subject: [PATCH 1/9] Remove unnecessary twig templates from UiBundle --- .../views/Form/Buttons/_cancel.html.twig | 3 - .../views/Form/Buttons/_create.html.twig | 11 --- .../views/Form/Buttons/_update.html.twig | 5 -- .../Resources/views/Grid/_history.html.twig | 23 ------ .../Resources/views/Layout/sidebar.html.twig | 61 -------------- .../views/Macro/breadcrumb.html.twig | 17 ---- .../Resources/views/Macro/common.html.twig | 7 -- .../Resources/views/Macro/flags.html.twig | 13 --- .../Resources/views/Macro/headers.html.twig | 13 --- .../Resources/views/Menu/sidebar.html.twig | 56 ------------- .../Resources/views/Menu/simple.html.twig | 26 ------ .../Resources/views/Menu/top.html.twig | 81 ------------------- .../views/Modal/_confirmation.html.twig | 19 ----- .../Resources/views/_javascripts.html.twig | 1 - .../Resources/views/_stylesheets.html.twig | 1 - 15 files changed, 337 deletions(-) delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_cancel.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_create.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_update.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/_history.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Layout/sidebar.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/breadcrumb.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/common.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/flags.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/headers.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Menu/sidebar.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Menu/simple.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Menu/top.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Modal/_confirmation.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/_javascripts.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/_stylesheets.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_cancel.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_cancel.html.twig deleted file mode 100644 index c6513a6962..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_cancel.html.twig +++ /dev/null @@ -1,3 +0,0 @@ - - {{ 'sylius.ui.cancel'|trans }} - diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_create.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_create.html.twig deleted file mode 100644 index 3fe5841dc4..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_create.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% if paths.cancel is not null %} - {% set cancelPath = paths.cancel|split('?')[0] %} -{% else %} - {% set cancelPath = null %} -{% endif %} - - -
- - {% include '@SyliusUi/Form/Buttons/_cancel.html.twig' with {'path': sylius_generate_redirect_path(cancelPath)} %} -
diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_update.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_update.html.twig deleted file mode 100644 index 9ff63dc6ad..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Form/Buttons/_update.html.twig +++ /dev/null @@ -1,5 +0,0 @@ - -
- - {% include '@SyliusUi/Form/Buttons/_cancel.html.twig' with {'path': paths.cancel|default(null)} %} -
diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_history.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_history.html.twig deleted file mode 100644 index 0db9578e14..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_history.html.twig +++ /dev/null @@ -1,23 +0,0 @@ -{% import '@SyliusUi/Macro/table.html.twig' as table %} -{% import '@SyliusUi/Macro/messages.html.twig' as messages %} - -{% set definition = resources.definition %} -{% set data = resources.data %} - -{% if data|length > 0 %} - - - - {{ table.headers(resources, definition, app.request.attributes) }} - - - - {% for row in data %} - {{ table.row(resources, definition, row) }} - {% endfor %} - -
-{% else %} - {{ messages.info('sylius.ui.no_results_to_display') }} -{% endif %} - diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Layout/sidebar.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Layout/sidebar.html.twig deleted file mode 100644 index 4d92722b07..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Layout/sidebar.html.twig +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - {% block title %}Sylius{% endblock %} - - - - {% block metatags %} - {% endblock %} - - {% block stylesheets %} - - {% endblock %} - - - - - -
-
-
- {% block flash_messages %} - {% include '@SyliusUi/_flashes.html.twig' %} - {% endblock %} - - {% block pre_content %} - {% endblock %} - - {% block content %} - {% endblock %} - - {% block post_content %} - {% endblock %} -
- - -
-
- -{% include '@SyliusUi/Modal/_confirmation.html.twig' %} - -{% block javascripts %} -{% endblock %} - - diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/breadcrumb.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/breadcrumb.html.twig deleted file mode 100644 index 2f784d3f9e..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/breadcrumb.html.twig +++ /dev/null @@ -1,17 +0,0 @@ -{% macro crumble(crumbs = {}, root_path, root_label) %} - -{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/common.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/common.html.twig deleted file mode 100644 index a29b8904d6..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/common.html.twig +++ /dev/null @@ -1,7 +0,0 @@ -{% macro attributes(attributes) %} - {% for name, value in attributes %} - {%- if value is not none and value is not same as(false) -%} - {{- ' %s="%s"'|format(name, value is same as(true) ? name|e : value|e)|raw -}} - {%- endif -%} - {%- endfor -%} -{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/flags.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/flags.html.twig deleted file mode 100644 index 06ba739154..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/flags.html.twig +++ /dev/null @@ -1,13 +0,0 @@ -{% macro fromCountryCode(country_code) %} - -{% endmacro %} - -{% macro fromLocaleCode(locale_code) %} - {% import _self as flags %} - - {% set country_code = locale_code|sylius_locale_country %} - - {% if country_code %} - {{ flags.fromCountryCode(country_code) }} - {% endif %} -{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/headers.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/headers.html.twig deleted file mode 100644 index 6fffe5c94c..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/headers.html.twig +++ /dev/null @@ -1,13 +0,0 @@ -{% macro default(header, icon, subheader) %} -

- {% if icon is not empty %} - - {% endif %} -
- {{ header }} - {% if subheader is not empty %} -
{{ subheader }}
- {% endif %} -
-

-{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Menu/sidebar.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Menu/sidebar.html.twig deleted file mode 100644 index 9bb1ac494b..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Menu/sidebar.html.twig +++ /dev/null @@ -1,56 +0,0 @@ -{% extends 'knp_menu.html.twig' %} - -{% block list %} -{% for item in item.children %} - {{ block('item') }} -{% endfor %} -{% endblock %} - -{% block item %} -{# building the class of the item #} -{%- set classes = item.attribute('class') is not empty ? [item.attribute('class')] : [] %} -{%- if matcher.isCurrent(item) %} - {%- set classes = classes|merge([options.currentClass]) %} -{%- elseif matcher.isAncestor(item, options.matchingDepth) %} - {%- set classes = classes|merge([options.ancestorClass]) %} -{%- endif %} -{%- if item.actsLikeFirst %} - {%- set classes = classes|merge([options.firstClass]) %} -{%- endif %} -{%- if item.actsLikeLast %} - {%- set classes = classes|merge([options.lastClass]) %} -{%- endif %} - -{# Mark item as "leaf" (no children) or as "branch" (has children that are displayed) #} -{% if item.hasChildren and options.depth is not same as(0) %} - {% if options.branch_class is not empty and item.displayChildren %} - {%- set classes = classes|merge([options.branch_class]) %} - {% endif %} -{% elseif options.leaf_class is not empty %} - {%- set classes = classes|merge([options.leaf_class]) %} -{%- endif %} - -{%- set attributes = item.attributes %} -{%- if classes is not empty %} - {%- set attributes = attributes|merge({'class': classes|join(' ')}) %} -{%- endif %} -{% if item.level is same as(1) %} -
-
{{ item.label|trans }}
- -
-{% else %} - - {{ block('icon') }} - {{ item.label|trans }} - -{% endif %} -{% endblock %} - -{% block icon %} -{% set icon = item.labelAttribute('icon') %} -{% if icon %} {% endif %} -{% endblock %} - diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Menu/simple.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Menu/simple.html.twig deleted file mode 100644 index 8c2853e016..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Menu/simple.html.twig +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'knp_menu.html.twig' %} - -{% block root %} - -{% endblock %} - -{% block list %} - {% for item in item.children %} - {{ block('item') }} - {% endfor %} -{% endblock %} - -{% block item %} - - {{ block('icon') }} - {{ item.label|trans }} - -{% endblock %} - -{% block icon %} - {% set icon = item.labelAttribute('icon') %} - {% if icon %} {% endif %} -{% endblock %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Menu/top.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Menu/top.html.twig deleted file mode 100644 index 8dc7e8fc4b..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Menu/top.html.twig +++ /dev/null @@ -1,81 +0,0 @@ -{% extends 'knp_menu.html.twig' %} - -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% block root %} - {% set id = item.extra('column_id') %} - -
- {{ block('items') }} -
-{% endblock %} - -{% block items %} -
- {% for item in item.children %} - {{ block('item') }} - {% endfor %} -
-{% endblock %} - -{% block item %} - {% if 'edit' == item.attribute('type') %} - {{ buttons.edit(item.uri, item.label) }} - {% elseif 'show' == item.attribute('type') %} - {{ buttons.show(item.uri, item.label) }} - {% elseif 'delete' == item.attribute('type') %} - {{ buttons.delete(item.uri, item.label|trans, true, item.attribute('resource_id')) }} - {% elseif 'transition' == item.attribute('type') %} - {{ block('transition') }} - {% elseif 'links' == item.attribute('type') %} - {{ block('links') }} - {% else %} - {{ block('link') }} - {% endif %} -{% endblock %} - -{% block link %} - {% set color = item.labelAttribute('color') %} - - - {{ block('icon') }} - {{ item.label|trans }} - -{% endblock %} - -{% block links %} - {% set color = item.labelAttribute('color') %} - {% set icon = item.labelAttribute('icon') %} - - -{% endblock %} - -{% block transition %} - {% set color = item.labelAttribute('color') %} - -
- - -
-{% endblock %} - -{% block icon %} - {% set icon = item.labelAttribute('icon') %} - {% if icon %} {% endif %} -{% endblock %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Modal/_confirmation.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Modal/_confirmation.html.twig deleted file mode 100644 index 0da494fdc7..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Modal/_confirmation.html.twig +++ /dev/null @@ -1,19 +0,0 @@ - diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/_javascripts.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/_javascripts.html.twig deleted file mode 100644 index 68d626a328..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/_javascripts.html.twig +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/_stylesheets.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/_stylesheets.html.twig deleted file mode 100644 index 93789c4aca..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/_stylesheets.html.twig +++ /dev/null @@ -1 +0,0 @@ - From ea165ae9f11451fb2742ddf8985d79b8deda018b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Wed, 25 Sep 2024 13:48:17 +0200 Subject: [PATCH 2/9] Remove unnecessary import --- .../Bundle/ShopBundle/templates/shared/grid/data_table.html.twig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Sylius/Bundle/ShopBundle/templates/shared/grid/data_table.html.twig b/src/Sylius/Bundle/ShopBundle/templates/shared/grid/data_table.html.twig index 7148b7ea6d..e6405e5972 100644 --- a/src/Sylius/Bundle/ShopBundle/templates/shared/grid/data_table.html.twig +++ b/src/Sylius/Bundle/ShopBundle/templates/shared/grid/data_table.html.twig @@ -1,5 +1,4 @@ {% import '@SyliusShop/shared/macro/grid/table.html.twig' as table %} -{% import '@SyliusUi/Macro/messages.html.twig' as messages %} {% import '@SyliusShop/shared/macro/pagination.html.twig' as pagination %} {% set resources = hookable_metadata.context.resources %} From 97ff417975787416a14d810f705a69456f9937d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Thu, 26 Sep 2024 13:48:15 +0200 Subject: [PATCH 3/9] Remove unused JS files --- .../Resources/private/js/sylius-api-login.js | 59 -------- .../Resources/private/js/sylius-api-toggle.js | 46 ------ .../private/js/sylius-auto-complete.js | 87 ------------ ...sylius-bulk-action-require-confirmation.js | 46 ------ .../private/js/sylius-form-collection.js | 134 ------------------ .../js/sylius-product-auto-complete.js | 67 --------- .../private/js/sylius-prototype-handler.js | 68 --------- .../private/js/sylius-require-confirmation.js | 41 ------ .../Resources/private/js/sylius-sanitizer.js | 5 - .../Resources/private/js/sylius-toggle.js | 31 ---- 10 files changed, 584 deletions(-) delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-login.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-toggle.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-auto-complete.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-bulk-action-require-confirmation.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-product-auto-complete.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-prototype-handler.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-require-confirmation.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-sanitizer.js delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-toggle.js diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-login.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-login.js deleted file mode 100644 index 617008ef93..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-login.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import 'semantic-ui-css/components/api'; -import $ from 'jquery'; - -$.fn.extend({ - apiLogin({ - method, - dataType = 'json', - throttle = 0, - debug = false, - }) { - const element = this; - const passwordField = element.find('input[type="password"]'); - const emailField = element.find('input[type="email"]'); - const csrfTokenField = element.find('input[type="hidden"]'); - const signInButton = element.find('.button'); - const validationField = element.find('.red.label'); - - signInButton.api({ - method, - dataType, - throttle, - debug, - - beforeSend(settings) { - /* eslint-disable-next-line no-param-reassign */ - settings.data = { - _username: emailField.val(), - _password: passwordField.val(), - [csrfTokenField.attr('name')]: csrfTokenField.val(), - }; - - return settings; - }, - - successTest(response) { - return response.success; - }, - - onSuccess() { - element.remove(); - window.location.reload(); - }, - - onFailure(response) { - validationField.removeClass('hidden'); - validationField.html(response.message); - }, - }); - }, -}); diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-toggle.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-toggle.js deleted file mode 100644 index 0260caa862..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-toggle.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import 'semantic-ui-css/components/api'; -import $ from 'jquery'; - -$.fn.extend({ - apiToggle({ - method, - dataType = 'json', - throttle = 0, - debug = false, - beforeSend, - successTest, - }, toggleableElement, isHidden = true) { - const element = this; - - if (isHidden) { - toggleableElement.hide(); - } - - element.api({ - method, - dataType, - throttle, - debug, - - beforeSend, - successTest, - - onSuccess() { - toggleableElement.show(); - }, - - onFailure() { - toggleableElement.hide(); - }, - }); - }, -}); diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-auto-complete.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-auto-complete.js deleted file mode 100644 index e52a6f42da..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-auto-complete.js +++ /dev/null @@ -1,87 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import 'semantic-ui-css/components/dropdown'; -import $ from 'jquery'; -import { sanitizeInput } from "./sylius-sanitizer"; - -$.fn.extend({ - autoComplete() { - this.each((idx, el) => { - const element = $(el); - const criteriaName = element.data('criteria-name'); - const choiceName = element.data('choice-name'); - const choiceValue = element.data('choice-value'); - const autocompleteValue = element.find('input.autocomplete').val(); - const loadForEditUrl = element.data('load-edit-url'); - - element.dropdown({ - delay: { - search: 250, - }, - forceSelection: false, - saveRemoteData: false, - apiSettings: { - dataType: 'JSON', - cache: false, - beforeSend(settings) { - /* eslint-disable-next-line no-param-reassign */ - settings.data[criteriaName] = settings.urlData.query; - - return settings; - }, - onResponse(response) { - let results = response.map(item => ({ - name: sanitizeInput(item[choiceName]), - value: sanitizeInput(item[choiceValue]), - })); - - if (!element.hasClass('multiple')) { - results.unshift({ - name: ' ', - value: '', - }); - } - - return { - success: true, - results: results, - }; - }, - }, - }); - - if (autocompleteValue.split(',').filter(String).length > 0) { - const menuElement = element.find('div.menu'); - - menuElement.api({ - on: 'now', - method: 'GET', - url: loadForEditUrl, - beforeSend(settings) { - /* eslint-disable-next-line no-param-reassign */ - settings.data[choiceValue] = autocompleteValue.split(',').filter(String); - - return settings; - }, - onSuccess(response) { - response.forEach((item) => { - menuElement.append(( - $(`
${sanitizeInput(item[choiceName])}
`) - )); - }); - - element.dropdown('refresh'); - element.dropdown('set selected', element.find('input.autocomplete').val().split(',').filter(String)); - }, - }); - } - }); - }, -}); diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-bulk-action-require-confirmation.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-bulk-action-require-confirmation.js deleted file mode 100644 index 6375269ad4..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-bulk-action-require-confirmation.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import 'semantic-ui-css/components/modal'; -import $ from 'jquery'; - -$.fn.extend({ - bulkActionRequireConfirmation() { - this.each((idx, el) => { - $(el).on('click', (evt) => { - evt.preventDefault(); - - const actionButton = $(evt.currentTarget); - - if (actionButton.is('a')) { - $('#confirmation-button').on('click', (event) => { - event.preventDefault(); - - window.location.href = actionButton.attr('href'); - }); - } - - if (actionButton.is('button')) { - $('#confirmation-button').on('click', (event) => { - event.preventDefault(); - - const form = actionButton.closest('form'); - $('input.bulk-select-checkbox:checked').each((index, element) => { - $(``).appendTo(form); - }); - - form.submit(); - }); - } - - $('#confirmation-modal').modal('show'); - }); - }); - }, -}); diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js deleted file mode 100644 index fbd3cf3337..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import $ from 'jquery'; - -/** - * Collection Form plugin - * - * @param element - * @constructor - */ -class CollectionForm { - constructor(element) { - this.addItem = this.addItem.bind(this); - this.updateItem = this.updateItem.bind(this); - this.deleteItem = this.constructor.deleteItem; - this.updatePrototype = this.updatePrototype.bind(this); - - this.$element = $(element); - this.$list = this.$element.find('[data-form-collection="list"]:first'); - this.count = this.$list.children().length; - this.lastChoice = null; - this.$element.on('click', '[data-form-collection="add"]:last', this.addItem); - this.$element.on('click', '[data-form-collection="delete"]', this.deleteItem); - this.$element.on('change', '[data-form-collection="update"]', this.updateItem); - $(document).on('change', '[data-form-prototype="update"]', this.updatePrototype); - $(document).on('collection-form-add', (event, addedElement) => { - $(addedElement).find('[data-form-type="collection"]').CollectionForm(); - $(document).trigger('dom-node-inserted', [$(addedElement)]); - }); - } - - /** - * Add a item to the collection. - * @param event - */ - addItem(event) { - event.preventDefault(); - - let prototype = this.$element.data('prototype'); - let prototypeName = new RegExp(this.$element.data('prototype-name'), 'g'); - - prototype = prototype.replace(prototypeName, this.count); - - this.$list.append(prototype); - this.count = this.count + 1; - - $(document).trigger('collection-form-add', [this.$list.children().last()]); - } - - /** - * Update item from the collection - */ - updateItem(event) { - event.preventDefault(); - const $element = $(event.currentTarget); - const url = $element.data('form-url'); - const value = $element.val(); - const $container = $element.closest('[data-form-collection="item"]'); - const index = $container.data('form-collection-index'); - const position = $container.data('form-collection-index'); - - if (url) { - $container.load(url, { id: value, position }); - } else { - let $prototype = this.$element.find(`[data-form-prototype="${value}"]`); - let prototypeName = new RegExp($prototype.data('subprototype-name'), 'g'); - - let prototype = $prototype.val().replace(prototypeName, index); - - $container.replaceWith(prototype); - } - $(document).trigger('collection-form-update', [$(event.currentTarget)]); - } - - /** - * Delete item from the collection - * @param event - */ - static deleteItem(event) { - event.preventDefault(); - - $(event.currentTarget) - .closest('[data-form-collection="item"]') - .remove(); - - $(document).trigger('collection-form-delete', [$(event.currentTarget)]); - } - - /** - * Update the prototype - * @param event - */ - updatePrototype(event) { - const $target = $(event.currentTarget); - let prototypeName = $target.val(); - - if ($target.data('form-prototype-prefix') !== undefined) { - prototypeName = $target.data('form-prototype-prefix') + prototypeName; - } - - if (this.lastChoice !== null && this.lastChoice !== prototypeName) { - this.$list.html(''); - } - - this.lastChoice = prototypeName; - - this.$element.data('prototype', this.$element.find(`[data-form-prototype="${prototypeName}"]`).val()); - } -} - -/* - * Plugin definition - */ - -$.fn.CollectionForm = function CollectionFormPlugin(option) { - this.each((idx, el) => { - const $element = $(el); - const data = $element.data('collectionForm'); - const options = typeof option === 'object' && option; - - if (!data) { - $element.data('collectionForm', new CollectionForm(el, options)); - } - }); -}; - -$.fn.CollectionForm.Constructor = CollectionForm; diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-product-auto-complete.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-product-auto-complete.js deleted file mode 100644 index 64e34d9bfb..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-product-auto-complete.js +++ /dev/null @@ -1,67 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import 'semantic-ui-css/components/dropdown'; -import $ from 'jquery'; -import { sanitizeInput } from "./sylius-sanitizer"; - -$.fn.extend({ - productAutoComplete() { - this.each((index, element) => { - const $element = $(element); - $element.dropdown('set selected', $element.find('input[name*="[associations]"]').val().split(',').filter(String)); - }); - - this.dropdown({ - delay: { - search: 250, - }, - forceSelection: false, - apiSettings: { - dataType: 'JSON', - cache: false, - data: { - criteria: { search: { type: 'contains', value: '' } }, - }, - beforeSend(settings) { - /* eslint-disable-next-line no-param-reassign */ - settings.data.criteria.search.value = settings.urlData.query; - - return settings; - }, - onResponse(response) { - return { - success: true, - results: response._embedded.items.map(item => ({ - name: sanitizeInput(item.name), - value: sanitizeInput(item.code), - })), - }; - }, - }, - onAdd(addedValue, addedText, $addedChoice) { - const inputAssociation = $addedChoice.parents('.product-select').find('input[name*="[associations]"]'); - const associatedProductCodes = inputAssociation.val().length > 0 ? inputAssociation.val().split(',').filter(String) : []; - - associatedProductCodes.push(addedValue); - $.unique(associatedProductCodes.sort()); - - inputAssociation.attr('value', associatedProductCodes.join()); - }, - onRemove(removedValue, removedText, $removedChoice) { - const inputAssociation = $removedChoice.parents('.product-select').find('input[name*="[associations]"]'); - const associatedProductCodes = inputAssociation.val().length > 0 ? inputAssociation.val().split(',').filter(String) : []; - - associatedProductCodes.splice($.inArray(removedValue, associatedProductCodes), 1); - - inputAssociation.attr('value', associatedProductCodes.join()); - }, - }); - }, -}); diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-prototype-handler.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-prototype-handler.js deleted file mode 100644 index 18e2a824fc..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-prototype-handler.js +++ /dev/null @@ -1,68 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import $ from 'jquery'; - -const methods = { - init(options) { - const settings = $.extend({ - prototypePrefix: false, - containerSelector: false, - }, options); - - const show = function show(element, replace) { - const selectedValue = element.val(); - let prototypePrefix = element.attr('id'); - if (settings.prototypePrefix != false) { - ({ prototypePrefix } = settings); - } - - const prototypeElement = $(`#${prototypePrefix}_${selectedValue}`); - let container; - - if (settings.containerSelector) { - container = $(settings.containerSelector); - } else { - container = $(prototypeElement.data('container')); - } - - if (!container.length) { - return; - } - - if (!prototypeElement.length) { - container.empty(); - return; - } - - if (replace || !container.html().trim()) { - container.html(prototypeElement.data('prototype')); - } - }; - - return this.each((index, element) => { - show($(element), false); - $(element).change((event) => { - show($(event.currentTarget), true); - }); - }); - }, -}; - -$.fn.handlePrototypes = function handlePrototypes(method, ...args) { - if (methods[method]) { - return methods[method].apply(this, args); - } else if (typeof method === 'object' || !method) { - return methods.init.apply(this, [method, ...args]); - } - - $.error(`Method ${method} does not exist on jQuery.handlePrototypes`); - - return undefined; -}; diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-require-confirmation.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-require-confirmation.js deleted file mode 100644 index e9f7306855..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-require-confirmation.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import 'semantic-ui-css/components/modal'; -import $ from 'jquery'; - -$.fn.extend({ - requireConfirmation() { - this.each((idx, el) => { - $(el).on('click', (evt) => { - evt.preventDefault(); - - const actionButton = $(evt.currentTarget); - - if (actionButton.is('a')) { - $('#confirmation-button').on('click', (event) => { - event.preventDefault(); - - window.location.href = actionButton.attr('href'); - }); - } - - if (actionButton.is('button')) { - $('#confirmation-button').on('click', (event) => { - event.preventDefault(); - - actionButton.closest('form').submit(); - }); - } - - $('#confirmation-modal').modal('show'); - }); - }); - }, -}); diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-sanitizer.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-sanitizer.js deleted file mode 100644 index f3dd2cd4cf..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-sanitizer.js +++ /dev/null @@ -1,5 +0,0 @@ -export function sanitizeInput(input) { - const div = document.createElement('div'); - div.textContent = input; - return div.innerHTML; // Converts text content to plain HTML, stripping any scripts -} diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-toggle.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-toggle.js deleted file mode 100644 index a7620e6ac5..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-toggle.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the Sylius package. - * - * (c) Sylius Sp. z o.o. - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import $ from 'jquery'; - -$.fn.extend({ - toggleElement() { - this.each((idx, el) => { - $(el).on('change', (event) => { - event.preventDefault(); - - const toggle = $(event.currentTarget); - const targetElement = $(`#${toggle.data('toggles')}`); - - if (toggle.is(':checked')) { - targetElement.show(); - } else { - targetElement.hide(); - } - }); - - $(el).trigger('change'); - }); - }, -}); From 21abc0c0e02e4f7fc63feaa62a02bc3b62238a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Thu, 26 Sep 2024 13:48:27 +0200 Subject: [PATCH 4/9] App.js cleanup --- .../UiBundle/Resources/private/js/app.js | 54 ------------------- 1 file changed, 54 deletions(-) diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/app.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/app.js index c60d0ad3c8..a1eb963379 100644 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/app.js +++ b/src/Sylius/Bundle/UiBundle/Resources/private/js/app.js @@ -7,64 +7,10 @@ * file that was distributed with this source code. */ -import 'semantic-ui-css/components/accordion'; -import 'semantic-ui-css/components/checkbox'; -import 'semantic-ui-css/components/dimmer'; -import 'semantic-ui-css/components/dropdown'; -import 'semantic-ui-css/components/rating'; -import 'semantic-ui-css/components/sidebar'; -import 'semantic-ui-css/components/tab'; -import 'semantic-ui-css/components/transition'; import $ from 'jquery'; -import './sylius-bulk-action-require-confirmation'; -import './sylius-form-collection'; -import './sylius-require-confirmation'; -import './sylius-toggle'; import './sylius-check-all'; $(document).ready(() => { - $('#sidebar').addClass('visible'); - $('#sidebar').sidebar('attach events', '#sidebar-toggle', 'toggle'); - $('#sidebar').sidebar('setting', { - dimPage: false, - closable: false, - }); - - $('.ui.checkbox').checkbox(); - $('.ui.accordion').accordion(); - $('.ui.menu .dropdown').dropdown({ action: 'hide' }); - $('.ui.inline.dropdown').dropdown(); - $('.link.ui.dropdown').dropdown({ action: 'hide' }); - $('.button.ui.dropdown').dropdown({ action: 'hide' }); - $('.ui.fluid.search.selection.ui.dropdown').dropdown(); - $('.ui.tabular.menu .item, .sylius-tabular-form .menu .item').tab(); - $('.ui.card .dimmable.image, .ui.cards .card .dimmable.image').dimmer({ on: 'hover' }); - $('.ui.rating').rating('disable'); - - $('form.loadable button[type=submit]').on('click', (event) => { - $(event.currentTarget).closest('form').addClass('loading'); - }); - $('.loadable.button').on('click', (event) => { - $(event.currentTarget).addClass('loading'); - }); - $('.message .close').on('click', (event) => { - $(event.currentTarget).closest('.message').transition('fade'); - }); - - $('[data-requires-confirmation]').requireConfirmation(); - $('[data-bulk-action-requires-confirmation]').bulkActionRequireConfirmation(); - $('[data-toggles]').toggleElement(); $('[data-js-bulk-checkboxes]').checkAll(); - - $('.special.cards .image').dimmer({ - on: 'hover', - }); - - $('[data-form-type="collection"]').CollectionForm(); - - $('[data-js-disable]').on('click', (e) => { - const $current = $(e.currentTarget); - $(document).find($current.attr('data-js-disable')).addClass('disabled'); - }); }); From c5d18bcf680852bfe9982874f93682ee6eee52a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Thu, 26 Sep 2024 14:04:14 +0200 Subject: [PATCH 5/9] Remove unused images --- .../UiBundle/Resources/private/img/50x50.png | Bin 452 -> 0 bytes .../Resources/private/img/logo-dark.png | Bin 17722 -> 0 bytes .../Resources/private/img/logo-light.png | Bin 18018 -> 0 bytes 3 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/img/50x50.png delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/img/logo-dark.png delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/private/img/logo-light.png diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/img/50x50.png b/src/Sylius/Bundle/UiBundle/Resources/private/img/50x50.png deleted file mode 100644 index 9d7b1800eccf883faf9acd5740561a3e3dc91265..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 452 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nC-&H|6fVg?3oVGw3ym^DWND9BhG z=SXS2LtENqvnvS46u zcwETvVj+8$1;dvM&ihyApA1xb+crh)(`13fHwQnzS<-3T_n7}~gZ?f~wMD$b7uz~B z4!dkgRJvs#m^-7x%*RCe}pkZAkEvn^NocwxpYwR6lJ5BCN!zdl}gVb{7necAWR_bonWt*5?8hx=*expEPK zfCcZX?GkQp3z_y*S^m(C<{B9vzV@0Y5A`-am#W~u_SoWC^J2xI-(9CW8`iz95PC7I zK`Fx7XIFc=h^tT0#ath!qK4;{_17j^d^_=E_Oi+~`yVg9&#_Bs@zH~Y0X|IGFSNSC zLXV0!v~(z_`v(8(Suga>*@sW(QbfJjl)tWldrUsq%ltkaB1yp0b&T(O*DpP(^~nzy O=nS5&elF{r5}E*^io4JN diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/img/logo-dark.png b/src/Sylius/Bundle/UiBundle/Resources/private/img/logo-dark.png deleted file mode 100644 index 448e27b2832c41e99235dd1f70450f4e153e878f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17722 zcmeHv_g7P0_va0v_$b9lRhlA7Q;=Q-l_sDdAWeD;B3*>g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~CG7Vh=<+izBV) z;Ux*<@==blb$#(X`@22zsbX1^fs6S5O7O!G{`>2{9Qc3C0e8J)x|=Q^)O50G52;)0 NXzFVe-?Dr9zW`x6#{K{R diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/img/logo-light.png b/src/Sylius/Bundle/UiBundle/Resources/private/img/logo-light.png deleted file mode 100644 index 4f58f1e2a3833e866ad97a34dd844122b923c860..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18018 zcmeHv_g7PC)b2?_lNJOiN>wRJXF!Ufh$x5%j7slF7o`Y<4neGdpdcU}rHM2RRccfe z5drBPqM#^*F1_8I`PTgp?ppVkZvUiI^zu*SCB=gKkzt)yzT;Q7V-lQaTw4xaWxjbM z==3?`?V1nHA9=Hki?-f|m)Pr`I`q2lK%97LCPyY4YspWA=<2(ciAFbcH;e|0+Gy{3 zN~ziW;*L&m+9R69-ND#-vabn;d+%^doK!n5DN`VkU}GFM@6gbk=j`GljF0lSV-tNK zh)sy$uzL`u?I`fR1!*9@xEN-8GCYd2)!4EBb58lC_(Ll7FG?@^8DBf=Ypk7G-?!fs zdWt;~^K(X8LpkfxN(t}v>TEOF_D-!HNr8yTgVMyrokR>z79lWa*&qL!>E3!U!f_x#E#lLO3M;MMvu|BAw)rNs9IYE?81d`bIvsV~O{mRgmx`k9 z?M*Ps0j~?@J_y3ZLH(eR)N~#M5khp&X&MEjQ^x$C2^+uNSXv+kCR<%dJT5N!ujb7| zKJS!zcF=+M8_y6K^ z4huK(u^wRQ>Fcu|lb`5Z`C4AnGo9`~kdaclUO%lSq#G~%zrX%h1OKam{|_2See0aa zPZ0Lg%DbF}si)s?D7UD~rUXDh<`Pqo#|m>sM^TAA}#r7UEokqc6V{V$8X(#;o>Ve1>rr+>XbMq=?@4KMg zK`%`Za4hmQRj|g%gNQEX&jX1Lb7d8|&B#EeUmC@a?6LHF36z%v_=ZAG0L__hlFE*R zi~6x)v4iwj0B%(!bgahV@1sqgQ z+3jFNbVF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SYfyR zpqI;AEowgLx%Z<85fu|1tat0-NbO6-y*R=EMn|hNe{GlBDTlOoQW-X8pC%kY+)@Ep z4KbwC6wBa}G^;)Imy8i!C6Aq97O}?pnfGEz06%}x+xt%3F5sul%=9U4--oxwV97Vv z4LIYeIMVEwSch*n$B1{^(-b)sCz9GN`wef5;jh_qT-=}OBXvS&Z*?#MBo<$+O8?N5 zChA@O03Lotj;fhn&`be=s+n&kGC;-Ox)m>#rl_`k&!y4B{V2yp91QgA>}UqLH}GuQ zG8C`I0*njnr)=ZQZR3SGVc$ogAp^Zr0`+L-F<;L*q@An6?HikV9vBg(N z+}Xb;l7i%WZOjB(~;SX%$ zk}%JB4s$61lQ6AZotwM#$VjK>rVstS<_*f%54r*;aV@eVwz$XqIQ)%`#;~TWwfFCB z4M*2VE0%0bVZXcgP2!6>e=K(f*iLC z!8=Q~rm57?qGy%E*XON#ml|0n2HdJORPnRli>id!g>^x$bMdBMI^O&W*WEKy;9YT| zM%_r@O5MJk1P)zxKh&Bskdx2q!RW+ zGddg@Y&?Y6o%?F2-zkP>I9agwGNofHMeA`4B&lySW-r=fnpUpQb z;VI*~x3s!$_QnI}vqpq$L zI2DaLf6Z6z$<*C=`H*K*wJ(M?@~8L^lDRUxNsOxXjotI5epzPm1VQO-HG3cPV5Do>|IQ2KRGrv!C9WKtjX z6MoSkiV()BC99GnrVD}1iD;)HDN4x&?5d9Se z-ibr)pSpyT#WqdjZ9Poh$SpXpCOmI~9~Pu-SRrFow)@A6C|NZBGHSqsh19p~M8vWK<-yDrbK2h(jd*0w&=~=tm{|67*^9%q0 From 2770eef9fa6db60d97f62dd3e7fcea46e5e1a7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Thu, 26 Sep 2024 15:17:11 +0200 Subject: [PATCH 6/9] Remove unused grids and templates from UiBundle --- .../templates/grid/_default.html.twig | 1 - .../UiBundle/Resources/config/app/config.yml | 25 ------- .../UiBundle/Resources/config/app/events.yaml | 54 -------------- .../views/Grid/Action/_link.html.twig | 3 - .../Grid/Action/applyTransition.html.twig | 12 ---- .../views/Grid/Action/create.html.twig | 6 -- .../views/Grid/Action/default.html.twig | 5 -- .../views/Grid/Action/delete.html.twig | 6 -- .../views/Grid/Action/links.html.twig | 24 ------- .../views/Grid/Action/show.html.twig | 6 -- .../views/Grid/Action/update.html.twig | 6 -- .../views/Grid/Body/_navigation.html.twig | 21 ------ .../views/Grid/Body/_pagination.html.twig | 3 - .../views/Grid/Body/_table.html.twig | 21 ------ .../views/Grid/BulkAction/delete.html.twig | 5 -- .../views/Grid/Filter/_content.html.twig | 25 ------- .../views/Grid/Filter/boolean.html.twig | 3 - .../views/Grid/Filter/date.html.twig | 10 --- .../views/Grid/Filter/entities.html.twig | 3 - .../views/Grid/Filter/entity.html.twig | 3 - .../views/Grid/Filter/exists.html.twig | 3 - .../views/Grid/Filter/money.html.twig | 11 --- .../Filter/resourceAutocomplete.html.twig | 3 - .../views/Grid/Filter/select.html.twig | 3 - .../views/Grid/Filter/string.html.twig | 8 --- .../Resources/views/Grid/_content.html.twig | 12 ---- .../Resources/views/Grid/_default.html.twig | 1 - .../Resources/views/Macro/buttons.html.twig | 72 ------------------- .../views/Macro/pagination.html.twig | 18 ----- .../Resources/views/Macro/sorting.html.twig | 21 ------ .../Resources/views/Macro/table.html.twig | 50 ------------- .../Resources/views/_flashes.html.twig | 31 -------- 32 files changed, 475 deletions(-) delete mode 100644 src/Sylius/Bundle/ShopBundle/templates/grid/_default.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/config/app/events.yaml delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/_link.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/applyTransition.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/create.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/default.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/delete.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/links.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/show.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/update.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_navigation.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_pagination.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_table.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/BulkAction/delete.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/_content.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/boolean.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/date.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entities.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entity.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/exists.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/money.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/resourceAutocomplete.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/select.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/string.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/_content.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Grid/_default.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/buttons.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/pagination.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/sorting.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/Macro/table.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/Resources/views/_flashes.html.twig diff --git a/src/Sylius/Bundle/ShopBundle/templates/grid/_default.html.twig b/src/Sylius/Bundle/ShopBundle/templates/grid/_default.html.twig deleted file mode 100644 index 07c62310ac..0000000000 --- a/src/Sylius/Bundle/ShopBundle/templates/grid/_default.html.twig +++ /dev/null @@ -1 +0,0 @@ -{% extends '@SyliusUi/Grid/_default.html.twig' %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/config/app/config.yml b/src/Sylius/Bundle/UiBundle/Resources/config/app/config.yml index 518af8c307..7297258b35 100644 --- a/src/Sylius/Bundle/UiBundle/Resources/config/app/config.yml +++ b/src/Sylius/Bundle/UiBundle/Resources/config/app/config.yml @@ -1,27 +1,2 @@ -imports: - - { resource: "@SyliusUiBundle/Resources/config/app/events.yaml" } - webpack_encore: output_path: '%kernel.project_dir%/public/build/default' - -sylius_grid: - templates: - action: - default: "@SyliusUi/Grid/Action/default.html.twig" - create: "@SyliusUi/Grid/Action/create.html.twig" - delete: "@SyliusUi/Grid/Action/delete.html.twig" - show: "@SyliusUi/Grid/Action/show.html.twig" - update: "@SyliusUi/Grid/Action/update.html.twig" - apply_transition: "@SyliusUi/Grid/Action/applyTransition.html.twig" - links: "@SyliusUi/Grid/Action/links.html.twig" - archive: "@SyliusUi/Grid/Action/archive.html.twig" - filter: - string: "@SyliusUi/Grid/Filter/string.html.twig" - boolean: "@SyliusUi/Grid/Filter/boolean.html.twig" - date: "@SyliusUi/Grid/Filter/date.html.twig" - entity: "@SyliusUi/Grid/Filter/entity.html.twig" - money: "@SyliusUi/Grid/Filter/money.html.twig" - exists: "@SyliusUi/Grid/Filter/exists.html.twig" - select: "@SyliusUi/Grid/Filter/select.html.twig" - bulk_action: - delete: "@SyliusUi/Grid/BulkAction/delete.html.twig" diff --git a/src/Sylius/Bundle/UiBundle/Resources/config/app/events.yaml b/src/Sylius/Bundle/UiBundle/Resources/config/app/events.yaml deleted file mode 100644 index 7b9a3b98cb..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/config/app/events.yaml +++ /dev/null @@ -1,54 +0,0 @@ -# This file is part of the Sylius package. -# (c) Sylius Sp. z o.o. - -sylius_ui: - events: - sylius.grid: - blocks: - content: - template: "@SyliusUi/Grid/_content.html.twig" - priority: 10 - - sylius.grid.body: - blocks: - navigation: - template: "@SyliusUi/Grid/Body/_navigation.html.twig" - priority: 30 - table: - template: "@SyliusUi/Grid/Body/_table.html.twig" - priority: 20 - pagination: - template: "@SyliusUi/Grid/Body/_pagination.html.twig" - priority: 10 - - sylius.grid.filters: - blocks: - content: - template: "@SyliusUi/Grid/Filter/_content.html.twig" - priority: 10 - - sylius.admin.login.before_form: - blocks: - legacy: - template: "@SyliusUi/Block/_legacySonataEvent.html.twig" - priority: 30 - context: - event: sylius.admin.login.before_form - logo: - template: "@SyliusUi/Security/_logo.html.twig" - priority: 20 - error: - template: "@SyliusUi/Security/_error.html.twig" - priority: 10 - flashes: - template: "@SyliusUi/_flashes.html.twig" - priority: 0 - - sylius.admin.login.form.content: - blocks: - credentials: - template: "@SyliusUi/Security/Form/_credentials.html.twig" - priority: 20 - submit: - template: "@SyliusUi/Security/Form/_submit.html.twig" - priority: 10 diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/_link.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/_link.html.twig deleted file mode 100644 index d094f2da1c..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/_link.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% set path = link.url is defined ? link.url : path(link.route, link.parameters|default([])) %} - -{% if link.icon is defined %} {% endif %}{{ link.label|trans }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/applyTransition.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/applyTransition.html.twig deleted file mode 100644 index 8d2847b4d0..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/applyTransition.html.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% set labeled = options.labeled is defined ? options.labeled : true %} - -{% if sylius_sm_can(data, options.graph, options.transition) %} -
- - - -
-{% endif %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/create.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/create.html.twig deleted file mode 100644 index 1760fdfe1b..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/create.html.twig +++ /dev/null @@ -1,6 +0,0 @@ -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('create')), options.link.parameters|default([]))) %} - -{% set labeled = options.labeled is defined ? options.labeled : true %} -{{ buttons.create(path, action.label, null, labeled) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/default.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/default.html.twig deleted file mode 100644 index 74f681bd06..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/default.html.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% set path = options.link.url|default(path(options.link.route, options.link.parameters|default({}))) %} - -{{ buttons.default(path, action.label, null, action.icon) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/delete.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/delete.html.twig deleted file mode 100644 index 0af07c51cf..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/delete.html.twig +++ /dev/null @@ -1,6 +0,0 @@ -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('delete')), options.link.parameters|default({'id': data.id}))) %} - -{% set labeled = options.labeled is defined ? options.labeled : true %} -{{ buttons.delete(path, action.label, labeled, data.id) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/links.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/links.html.twig deleted file mode 100644 index 41b7c21f52..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/links.html.twig +++ /dev/null @@ -1,24 +0,0 @@ -{% set visible = options.visible is defined ? options.visible : true %} - -{% if visible %} - -{% endif %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/show.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/show.html.twig deleted file mode 100644 index e7af8683af..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/show.html.twig +++ /dev/null @@ -1,6 +0,0 @@ -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('show')), options.link.parameters|default({'id': data.id}))) %} - -{% set labeled = options.labeled is defined ? options.labeled : true %} -{{ buttons.show(path, action.label, null, null, labeled) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/update.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/update.html.twig deleted file mode 100644 index b94abbc9aa..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/update.html.twig +++ /dev/null @@ -1,6 +0,0 @@ -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('update')), options.link.parameters|default({'id': data.id}))) %} - -{% set labeled = options.labeled is defined ? options.labeled : true %} -{{ buttons.edit(path, action.label, null, labeled) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_navigation.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_navigation.html.twig deleted file mode 100644 index 27de836df7..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_navigation.html.twig +++ /dev/null @@ -1,21 +0,0 @@ -{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %} - -
- {% if data|length > 0 and definition.actionGroups.bulk is defined and definition.getEnabledActions('bulk')|length > 0 %} -
- {% for action in definition.getEnabledActions('bulk') %} - {{ sylius_grid_render_bulk_action(grid, action, null) }} - {% endfor %} -
- {% endif %} -
- {{ pagination.simple(data) }} -
- {% if definition.limits|length > 1 and data|length > min(definition.limits) %} -
- -
- {% endif %} -
diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_pagination.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_pagination.html.twig deleted file mode 100644 index b811169c14..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_pagination.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %} - -{{ pagination.simple(data) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_table.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_table.html.twig deleted file mode 100644 index d047733d19..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Body/_table.html.twig +++ /dev/null @@ -1,21 +0,0 @@ -{% import '@SyliusUi/Macro/table.html.twig' as table %} -{% import '@SyliusUi/Macro/messages.html.twig' as messages %} - -{% if data|length > 0 %} -
- - - - {{ table.headers(grid, definition, app.request.attributes) }} - - - - {% for row in data %} - {{ table.row(grid, definition, row) }} - {% endfor %} - -
-
-{% else %} - {{ messages.info('sylius.ui.no_results_to_display') }} -{% endif %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/BulkAction/delete.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/BulkAction/delete.html.twig deleted file mode 100644 index 341f1191d8..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/BulkAction/delete.html.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('bulk_delete')), options.link.parameters|default({}))) %} - -{{ buttons.bulkDelete(path, action.label, true) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/_content.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/_content.html.twig deleted file mode 100644 index c8ec2d7855..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/_content.html.twig +++ /dev/null @@ -1,25 +0,0 @@ -{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - -{% if definition.enabledFilters|length > 0 %} - -
-
- - - {{ 'sylius.ui.filters'|trans }} -
-
-
-
- {% for filter in definition.enabledFilters|filter(filter => filter.enabled)|sort_by('position') %} -
- {{ sylius_grid_render_filter(grid, filter) }} -
- {% endfor %} -
- {{ buttons.filter() }} - {{ buttons.resetFilters(path) }} -
-
-
-{% endif %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/boolean.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/boolean.html.twig deleted file mode 100644 index 0daf498ad6..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/boolean.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -{{ form_row(form, {'label': filter.label}) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/date.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/date.html.twig deleted file mode 100644 index 390b931f4c..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/date.html.twig +++ /dev/null @@ -1,10 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -
- {{ form_row(form.from, { attr: {'class': 'sylius-filters__group'}, 'label': 'sylius.ui.date_filter', 'label_translation_parameters': {'%label%': filter.label|trans, '%altLabel%': form.from.vars.label|trans} }) }} -
- - -
- {{ form_row(form.to, { attr: {'class': 'sylius-filters__group'} }) }} -
diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entities.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entities.html.twig deleted file mode 100644 index 0daf498ad6..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entities.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -{{ form_row(form, {'label': filter.label}) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entity.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entity.html.twig deleted file mode 100644 index 0daf498ad6..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/entity.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -{{ form_row(form, {'label': filter.label}) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/exists.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/exists.html.twig deleted file mode 100644 index 0daf498ad6..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/exists.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -{{ form_row(form, {'label': filter.label}) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/money.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/money.html.twig deleted file mode 100644 index 9b953e1781..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/money.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -
- {{ form_row(form.greaterThan, {attr: {'placeholder': form.greaterThan.vars.label}, 'label': 'sylius.ui.money_filter', 'label_translation_parameters': {'%label%': filter.label|trans, '%altLabel%': form.greaterThan.vars.label|trans}}) }} -
- - -
- {{ form_row(form.lessThan, {attr: { 'placeholder': form.lessThan.vars.label }}) }} - {{ form_row(form.currency) }} -
diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/resourceAutocomplete.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/resourceAutocomplete.html.twig deleted file mode 100644 index f82fa8d346..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/resourceAutocomplete.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -{{ form_row(form, {'label': filter.label, 'remote_url': path(filter.formOptions.remote_path), 'load_edit_url': path(filter.formOptions.load_edit_path)}) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/select.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/select.html.twig deleted file mode 100644 index 0daf498ad6..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/select.html.twig +++ /dev/null @@ -1,3 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -{{ form_row(form, {'label': filter.label}) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/string.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/string.html.twig deleted file mode 100644 index eb7b12b614..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Filter/string.html.twig +++ /dev/null @@ -1,8 +0,0 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} - -
- {% if form.type is defined %} - {{ form_row(form.type, {'label': filter.label}) }} - {% endif %} - {{ form_row(form.value, {attr: {placeholder: form.value.vars.label}, 'label': form.type is defined ? form.value.vars.label : filter.label}) }} -
diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_content.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_content.html.twig deleted file mode 100644 index b27a593919..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_content.html.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% set definition = grid.definition %} -{% set data = grid.data %} - -{% set path = path(app.request.attributes.get('_route'), app.request.attributes.all('_route_params')) %} -{% set criteria = app.request.query.all('criteria') %} - -{{ sylius_template_event('sylius.grid.filters', _context) }} - - -
- {{ sylius_template_event('sylius.grid.body', _context) }} -
diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_default.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_default.html.twig deleted file mode 100644 index 5e7f0d1b8f..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/_default.html.twig +++ /dev/null @@ -1 +0,0 @@ -{{ sylius_template_event('sylius.grid', _context) }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/buttons.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/buttons.html.twig deleted file mode 100644 index 2f641eb0e1..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/buttons.html.twig +++ /dev/null @@ -1,72 +0,0 @@ -{% macro default(url, message, id, icon, class) %} - - {% if icon is not empty %} - - {% endif %} - {% if message is not empty %} - {{ message|trans }} - {% endif %} - -{% endmacro %} - -{% macro show(url, message, id, class, labeled = true) %} - {% import _self as buttons %} - - {% if message is empty and labeled %} - {% set message = 'sylius.ui.show' %} - {% endif %} - - {{ buttons.default(url, message, id, 'search') }} -{% endmacro %} - -{% macro create(url, message, id, labeled = true) %} - {% import _self as buttons %} - - {% if message is empty and labeled %} - {% set message = 'sylius.ui.create' %} - {% endif %} - - {{ buttons.default(url, message, id, 'plus', 'primary') }} -{% endmacro %} - -{% macro edit(url, message, id, labeled = true) %} - {% import _self as buttons %} - - {% if message is empty and labeled %} - {% set message = 'sylius.ui.edit' %} - {% endif %} - - {{ buttons.default(url, message, id, 'pencil') }} -{% endmacro %} - -{% macro filter(message) %} - -{% endmacro %} - -{% macro resetFilters(url, message) %} - - {{ (message is empty ? 'sylius.ui.clear_filters' : message)|trans }} - -{% endmacro %} - -{% macro delete(url, message, labeled = true, resourceId = null) %} -
- - - -
-{% endmacro %} - -{% macro bulkDelete(url, message, labeled = true) %} -
- - - -
-{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/pagination.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/pagination.html.twig deleted file mode 100644 index 89adff0f5b..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/pagination.html.twig +++ /dev/null @@ -1,18 +0,0 @@ -{% macro simple(paginator, options) %} - {% if paginator.haveToPaginate() %} - {{ pagerfanta(paginator, 'twig', options|default({'template': '@BabDevPagerfanta/semantic_ui.html.twig'})) }} - {% endif %} -{% endmacro %} - -{% macro perPage(paginator, paginationLimits) %} - -{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/sorting.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/sorting.html.twig deleted file mode 100644 index 375e0c7b3c..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/sorting.html.twig +++ /dev/null @@ -1,21 +0,0 @@ -{% macro tableHeader(grid, field, attributes) %} - {% from _self import link %} - {% set order = grid.getSortingOrder(field.name) %} - - {% if grid.isSortedBy(field.name) %} - - {{ field.label|trans }} - - {% else %} - - {{ field.label|trans }} - - {% endif %} -{% endmacro %} - -{% macro link(fieldName, attributes, order, parameters) %} - {% set params = attributes.all('_route_params')|merge(parameters) %} - {% set sorting = {'sorting': {(fieldName): (order)}} %} - - {{ path(attributes.get('_route'), params|merge(sorting)|merge({'page': 1})) }} -{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/table.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/Macro/table.html.twig deleted file mode 100644 index be22bd2587..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/table.html.twig +++ /dev/null @@ -1,50 +0,0 @@ -{% macro headers(grid, definition, requestAttributes) %} - {% import '@SyliusUi/Macro/sorting.html.twig' as sorting %} - - {% if definition.actionGroups.bulk is defined and definition.getEnabledActions('bulk')|length > 0 %} - - - - {% endif %} - - {% for field in definition.fields|sort_by('position') %} - {% if field.enabled %} - {% if field.isSortable %} - {{ sorting.tableHeader(grid, field, requestAttributes) }} - {% else %} - {{ field.label|trans }} - {% endif %} - {% endif %} - {% endfor %} - {% if definition.actionGroups.item is defined and definition.getEnabledActions('item')|length > 0 %} - {{ 'sylius.ui.actions'|trans }} - {% endif %} -{% endmacro %} - -{% macro row(grid, definition, row) %} - - {% if definition.actionGroups.bulk is defined and definition.getEnabledActions('bulk')|length > 0 %} - - {% endif %} - {% for field in definition.enabledFields|sort_by('position') %} - {{ sylius_grid_render_field(grid, field, row) }} - {% endfor %} - {% if definition.actionGroups.item is defined and definition.getEnabledActions('item')|length > 0 %} - -
- {% for action in definition.getEnabledActions('item')|sort_by('position') %} - {{ sylius_grid_render_action(grid, action, row) }} - {% endfor %} -
- {% if definition.actionGroups.subitem is defined and definition.getEnabledActions('subitem')|length > 0 %} -
-
- {% for action in definition.getEnabledActions('subitem')|sort_by('position') %} - {{ sylius_grid_render_action(grid, action, row) }} - {% endfor %} -
- {% endif %} - - {% endif %} - -{% endmacro %} diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/_flashes.html.twig b/src/Sylius/Bundle/UiBundle/Resources/views/_flashes.html.twig deleted file mode 100644 index 1551d2592e..0000000000 --- a/src/Sylius/Bundle/UiBundle/Resources/views/_flashes.html.twig +++ /dev/null @@ -1,31 +0,0 @@ -{% if app.session is not null and app.session.started %} - {% for type in ['success', 'error', 'info', 'warning'] %} - {% for flash in app.session.flashbag.get(type) %} - {% if 'error' == type %} - {% set result = 'negative' %} - {% set icon = 'remove' %} - {% endif %} - {% if 'info' == type %} - {% set result = 'info' %} - {% set icon = 'info' %} - {% endif %} -
- - -
-
- {% set header = 'sylius.ui.'~type %} - {{ header|trans }} -
-

- {% if flash is iterable %} - {{ flash.message|trans(flash.parameters, 'flashes') }} - {% else %} - {{ flash|trans({}, 'flashes') }} - {% endif %} -

-
-
- {% endfor %} - {% endfor %} -{% endif %} From c4acc2e554d28a38710a23bea42db60f7dd1a829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Fri, 27 Sep 2024 11:29:42 +0200 Subject: [PATCH 7/9] Move twig files to templates directory --- .../views => templates}/Block/_legacySonataEvent.html.twig | 0 .../{Resources/views => templates}/DataCollector/icon.svg | 0 .../views => templates}/DataCollector/templateBlock.html.twig | 0 .../{Resources/views => templates}/Form/imagesTheme.html.twig | 0 .../UiBundle/{Resources/views => templates}/Form/theme.html.twig | 0 .../{Resources/views => templates}/Grid/Action/archive.html.twig | 0 .../{Resources/views => templates}/Grid/Field/enabled.html.twig | 0 .../{Resources/views => templates}/Grid/Field/humanized.html.twig | 0 .../{Resources/views => templates}/Grid/Field/label.html.twig | 0 .../{Resources/views => templates}/Grid/Field/logAction.html.twig | 0 .../{Resources/views => templates}/Grid/Field/logData.html.twig | 0 .../views => templates}/Grid/Field/nameAndDescription.html.twig | 0 .../{Resources/views => templates}/Grid/Field/percent.html.twig | 0 .../{Resources/views => templates}/Grid/Field/position.html.twig | 0 .../{Resources/views => templates}/Grid/Field/rawLabel.html.twig | 0 .../{Resources/views => templates}/Grid/Field/state.html.twig | 0 .../{Resources/views => templates}/Grid/Field/yesNo.html.twig | 0 .../{Resources/views => templates}/Label/_default.html.twig | 0 .../{Resources/views => templates}/Layout/centered.html.twig | 0 .../{Resources/views => templates}/Macro/labels.html.twig | 0 .../{Resources/views => templates}/Macro/messages.html.twig | 0 .../views => templates}/Security/Form/_credentials.html.twig | 0 .../views => templates}/Security/Form/_submit.html.twig | 0 .../{Resources/views => templates}/Security/_error.html.twig | 0 .../{Resources/views => templates}/Security/_login.html.twig | 0 .../{Resources/views => templates}/Security/_logo.html.twig | 0 .../{Resources/views => templates}/Security/login.html.twig | 0 27 files changed, 0 insertions(+), 0 deletions(-) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Block/_legacySonataEvent.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/DataCollector/icon.svg (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/DataCollector/templateBlock.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Form/imagesTheme.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Form/theme.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Action/archive.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/enabled.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/humanized.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/label.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/logAction.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/logData.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/nameAndDescription.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/percent.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/position.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/rawLabel.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/state.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Grid/Field/yesNo.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Label/_default.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Layout/centered.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Macro/labels.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Macro/messages.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Security/Form/_credentials.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Security/Form/_submit.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Security/_error.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Security/_login.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Security/_logo.html.twig (100%) rename src/Sylius/Bundle/UiBundle/{Resources/views => templates}/Security/login.html.twig (100%) diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Block/_legacySonataEvent.html.twig b/src/Sylius/Bundle/UiBundle/templates/Block/_legacySonataEvent.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Block/_legacySonataEvent.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Block/_legacySonataEvent.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/DataCollector/icon.svg b/src/Sylius/Bundle/UiBundle/templates/DataCollector/icon.svg similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/DataCollector/icon.svg rename to src/Sylius/Bundle/UiBundle/templates/DataCollector/icon.svg diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/DataCollector/templateBlock.html.twig b/src/Sylius/Bundle/UiBundle/templates/DataCollector/templateBlock.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/DataCollector/templateBlock.html.twig rename to src/Sylius/Bundle/UiBundle/templates/DataCollector/templateBlock.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Form/imagesTheme.html.twig b/src/Sylius/Bundle/UiBundle/templates/Form/imagesTheme.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Form/imagesTheme.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Form/imagesTheme.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Form/theme.html.twig b/src/Sylius/Bundle/UiBundle/templates/Form/theme.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Form/theme.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Form/theme.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/archive.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Action/archive.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/archive.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Action/archive.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/enabled.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/enabled.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/enabled.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/enabled.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/humanized.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/humanized.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/humanized.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/humanized.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/label.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/label.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/label.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/label.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/logAction.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/logAction.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/logAction.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/logAction.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/logData.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/logData.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/logData.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/logData.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/nameAndDescription.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/nameAndDescription.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/nameAndDescription.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/nameAndDescription.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/percent.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/percent.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/percent.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/percent.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/position.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/position.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/position.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/position.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/rawLabel.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/rawLabel.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/rawLabel.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/rawLabel.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/state.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/state.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/state.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/state.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/yesNo.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/yesNo.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/yesNo.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Grid/Field/yesNo.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Label/_default.html.twig b/src/Sylius/Bundle/UiBundle/templates/Label/_default.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Label/_default.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Label/_default.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Layout/centered.html.twig b/src/Sylius/Bundle/UiBundle/templates/Layout/centered.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Layout/centered.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Layout/centered.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/labels.html.twig b/src/Sylius/Bundle/UiBundle/templates/Macro/labels.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Macro/labels.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Macro/labels.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Macro/messages.html.twig b/src/Sylius/Bundle/UiBundle/templates/Macro/messages.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Macro/messages.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Macro/messages.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Security/Form/_credentials.html.twig b/src/Sylius/Bundle/UiBundle/templates/Security/Form/_credentials.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Security/Form/_credentials.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Security/Form/_credentials.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Security/Form/_submit.html.twig b/src/Sylius/Bundle/UiBundle/templates/Security/Form/_submit.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Security/Form/_submit.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Security/Form/_submit.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Security/_error.html.twig b/src/Sylius/Bundle/UiBundle/templates/Security/_error.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Security/_error.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Security/_error.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig b/src/Sylius/Bundle/UiBundle/templates/Security/_login.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Security/_login.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Security/_logo.html.twig b/src/Sylius/Bundle/UiBundle/templates/Security/_logo.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Security/_logo.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Security/_logo.html.twig diff --git a/src/Sylius/Bundle/UiBundle/Resources/views/Security/login.html.twig b/src/Sylius/Bundle/UiBundle/templates/Security/login.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/Resources/views/Security/login.html.twig rename to src/Sylius/Bundle/UiBundle/templates/Security/login.html.twig From 101ea2708c0803c5e16ae6138c3496dcd8ae3e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Fri, 27 Sep 2024 11:58:51 +0200 Subject: [PATCH 8/9] Remove unused template --- .../Resources/config/routing/promotion.yml | 1 - .../Resources/config/routing/shipping_method.yml | 1 - .../templates/Grid/Action/archive.html.twig | 15 --------------- 3 files changed, 17 deletions(-) delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Grid/Action/archive.html.twig diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/routing/promotion.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/routing/promotion.yml index 415ab691f7..1b9d7cc77b 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/routing/promotion.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/routing/promotion.yml @@ -30,7 +30,6 @@ sylius_admin_promotion_archive: _sylius: section: admin permission: true - template: '@SyliusUi/Grid/Action/archive.html.twig' form: type: Sylius\Bundle\ResourceBundle\Form\Type\ArchivableType redirect: diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/routing/shipping_method.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/routing/shipping_method.yml index 23e481743a..a072dd81d6 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/routing/shipping_method.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/routing/shipping_method.yml @@ -19,7 +19,6 @@ sylius_admin_shipping_method_archive: _sylius: section: admin permission: true - template: '@SyliusUi/Grid/Action/archive.html.twig' form: type: Sylius\Bundle\ResourceBundle\Form\Type\ArchivableType redirect: diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Action/archive.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Action/archive.html.twig deleted file mode 100644 index e13a1d9b96..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Grid/Action/archive.html.twig +++ /dev/null @@ -1,15 +0,0 @@ -{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('archive')), options.link.parameters|default({'id': data.id}))) %} - -
- - - - -
From d5bf41bbe0a9ba245ebaf27474ce743e57a0ea30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Fri, 27 Sep 2024 12:11:05 +0200 Subject: [PATCH 9/9] Refactor templates directories to lower case and templates names to snake_case --- docs/cookbook/entities/custom-model.rst | 2 +- .../entities/custom-translatable-model.rst | 2 +- .../migrating-to-webpack-1-11-or-earlier.rst | 2 +- docs/customization/template.rst | 2 +- .../config/grids/address_log_entry.yml | 4 +- .../Resources/config/grids/payment_method.yml | 4 +- .../config/grids/product_attribute.yml | 4 +- .../Resources/config/grids/product_option.yml | 2 +- .../Resources/config/grids/promotion.yml | 2 +- .../config/grids/shipping_method.yml | 2 +- .../Resources/config/grids/tax_category.yml | 2 +- .../Resources/config/grids/tax_rate.yml | 2 +- .../Resources/config/grids/account/order.yml | 2 +- .../Controller/SecurityController.php | 2 +- .../config/services/debug/template_event.xml | 2 +- .../Block/_legacySonataEvent.html.twig | 4 - .../templates/Form/imagesTheme.html.twig | 114 ------------------ .../templates/Grid/Field/enabled.html.twig | 2 - .../templates/Grid/Field/rawLabel.html.twig | 1 - .../templates/Grid/Field/yesNo.html.twig | 2 - .../templates/Label/_default.html.twig | 2 - .../templates/Security/login.html.twig | 5 - .../icon.svg | 0 .../template_block.html.twig} | 4 +- .../templates/{Form => form}/theme.html.twig | 0 .../templates/grid/field/enabled.html.twig | 2 + .../Field => grid/field}/humanized.html.twig | 0 .../Field => grid/field}/label.html.twig | 4 +- .../field/log_action.html.twig} | 0 .../field/log_data.html.twig} | 0 .../field/name_and_description.html.twig} | 0 .../Field => grid/field}/percent.html.twig | 0 .../Field => grid/field}/position.html.twig | 0 .../templates/grid/field/raw_label.html.twig | 1 + .../Field => grid/field}/state.html.twig | 4 +- .../templates/grid/field/yes_no.html.twig | 2 + .../templates/label/_default.html.twig | 2 + .../{Layout => layout}/centered.html.twig | 0 .../{Macro => macro}/labels.html.twig | 0 .../{Macro => macro}/messages.html.twig | 0 .../Form/_credentials.html.twig | 0 .../Form/_submit.html.twig | 0 .../{Security => security}/_error.html.twig | 2 +- .../{Security => security}/_login.html.twig | 2 +- .../{Security => security}/_logo.html.twig | 0 .../templates/security/login.html.twig | 5 + 46 files changed, 38 insertions(+), 156 deletions(-) delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Block/_legacySonataEvent.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Form/imagesTheme.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Grid/Field/enabled.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Grid/Field/rawLabel.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Grid/Field/yesNo.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Label/_default.html.twig delete mode 100644 src/Sylius/Bundle/UiBundle/templates/Security/login.html.twig rename src/Sylius/Bundle/UiBundle/templates/{DataCollector => data_collector}/icon.svg (100%) rename src/Sylius/Bundle/UiBundle/templates/{DataCollector/templateBlock.html.twig => data_collector/template_block.html.twig} (97%) rename src/Sylius/Bundle/UiBundle/templates/{Form => form}/theme.html.twig (100%) create mode 100644 src/Sylius/Bundle/UiBundle/templates/grid/field/enabled.html.twig rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field => grid/field}/humanized.html.twig (100%) rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field => grid/field}/label.html.twig (58%) rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field/logAction.html.twig => grid/field/log_action.html.twig} (100%) rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field/logData.html.twig => grid/field/log_data.html.twig} (100%) rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field/nameAndDescription.html.twig => grid/field/name_and_description.html.twig} (100%) rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field => grid/field}/percent.html.twig (100%) rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field => grid/field}/position.html.twig (100%) create mode 100644 src/Sylius/Bundle/UiBundle/templates/grid/field/raw_label.html.twig rename src/Sylius/Bundle/UiBundle/templates/{Grid/Field => grid/field}/state.html.twig (58%) create mode 100644 src/Sylius/Bundle/UiBundle/templates/grid/field/yes_no.html.twig create mode 100644 src/Sylius/Bundle/UiBundle/templates/label/_default.html.twig rename src/Sylius/Bundle/UiBundle/templates/{Layout => layout}/centered.html.twig (100%) rename src/Sylius/Bundle/UiBundle/templates/{Macro => macro}/labels.html.twig (100%) rename src/Sylius/Bundle/UiBundle/templates/{Macro => macro}/messages.html.twig (100%) rename src/Sylius/Bundle/UiBundle/templates/{Security => security}/Form/_credentials.html.twig (100%) rename src/Sylius/Bundle/UiBundle/templates/{Security => security}/Form/_submit.html.twig (100%) rename src/Sylius/Bundle/UiBundle/templates/{Security => security}/_error.html.twig (75%) rename src/Sylius/Bundle/UiBundle/templates/{Security => security}/_login.html.twig (91%) rename src/Sylius/Bundle/UiBundle/templates/{Security => security}/_logo.html.twig (100%) create mode 100644 src/Sylius/Bundle/UiBundle/templates/security/login.html.twig diff --git a/docs/cookbook/entities/custom-model.rst b/docs/cookbook/entities/custom-model.rst index f0e2a26c76..4229326a51 100644 --- a/docs/cookbook/entities/custom-model.rst +++ b/docs/cookbook/entities/custom-model.rst @@ -148,7 +148,7 @@ To have templates for your Entity administration out of the box you can use Grid type: twig label: sylius.ui.enabled options: - template: "@SyliusUi/Grid/Field/enabled.html.twig" + template: "@SyliusUi/grid/field/enabled.html.twig" actions: main: create: diff --git a/docs/cookbook/entities/custom-translatable-model.rst b/docs/cookbook/entities/custom-translatable-model.rst index d0997de153..39fea78b17 100644 --- a/docs/cookbook/entities/custom-translatable-model.rst +++ b/docs/cookbook/entities/custom-translatable-model.rst @@ -415,7 +415,7 @@ To have templates for your Entity administration out of the box you can use Grid type: twig label: sylius.ui.enabled options: - template: "@SyliusUi/Grid/Field/enabled.html.twig" + template: "@SyliusUi/grid/field/enabled.html.twig" actions: main: create: diff --git a/docs/cookbook/frontend/migrating-to-webpack-1-11-or-earlier.rst b/docs/cookbook/frontend/migrating-to-webpack-1-11-or-earlier.rst index 3248190fa6..a4b4c47fcf 100644 --- a/docs/cookbook/frontend/migrating-to-webpack-1-11-or-earlier.rst +++ b/docs/cookbook/frontend/migrating-to-webpack-1-11-or-earlier.rst @@ -113,7 +113,7 @@ Now we will walk through the process of migrating your project from Gulp to Webp .. code-block:: twig - {% include '@SyliusUi/Security/_login.html.twig' + {% include '@SyliusUi/security/_login.html.twig' with { 'action': path('sylius_admin_login_check'), 'paths': {'logo': asset('build/admin/images/logo.png', 'admin')} diff --git a/docs/customization/template.rst b/docs/customization/template.rst index 03b3d015ef..03593b6169 100644 --- a/docs/customization/template.rst +++ b/docs/customization/template.rst @@ -58,7 +58,7 @@ Copy the contents of the original template to make your work easier. And then mo {% extends '@SyliusShop/shared/layout/base.html.twig' %} - {% import '@SyliusUi/Macro/messages.html.twig' as messages %} + {% import '@SyliusUi/macro/messages.html.twig' as messages %} {% block content %}
diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/address_log_entry.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/address_log_entry.yml index b2de20fd38..f2129e2cd9 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/address_log_entry.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/address_log_entry.yml @@ -14,7 +14,7 @@ sylius_grid: type: twig label: sylius.ui.action options: - template: "@SyliusUi/Grid/Field/logAction.html.twig" + template: "@SyliusUi/grid/field/log_action.html.twig" loggedAt: type: datetime label: sylius.ui.logged_at @@ -24,4 +24,4 @@ sylius_grid: type: twig label: sylius.ui.changes options: - template: "@SyliusUi/Grid/Field/logData.html.twig" + template: "@SyliusUi/grid/field/log_data.html.twig" diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml index ce60f82f97..71f434ef84 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml @@ -16,7 +16,7 @@ sylius_grid: label: sylius.ui.position sortable: ~ options: - template: "@SyliusUi/Grid/Field/position.html.twig" + template: "@SyliusUi/grid/field/position.html.twig" vars: th_class: "w-1 text-center" td_class: "text-center" @@ -38,7 +38,7 @@ sylius_grid: label: sylius.ui.gateway sortable: gatewayConfig.factoryName options: - template: "@SyliusUi/Grid/Field/humanized.html.twig" + template: "@SyliusUi/grid/field/humanized.html.twig" enabled: type: twig label: sylius.ui.enabled diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml index ad1b2b5355..65f2af3aa6 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml @@ -32,7 +32,7 @@ sylius_grid: label: sylius.ui.type sortable: ~ options: - template: "@SyliusUi/Grid/Field/label.html.twig" + template: "@SyliusUi/grid/field/label.html.twig" translatable: type: twig label: sylius.ui.translatable @@ -44,7 +44,7 @@ sylius_grid: label: sylius.ui.position sortable: ~ options: - template: "@SyliusUi/Grid/Field/position.html.twig" + template: "@SyliusUi/grid/field/position.html.twig" vars: th_class: "w-1 text-center" td_class: "text-center" diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml index b0824a1ba1..06bb45815b 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml @@ -16,7 +16,7 @@ sylius_grid: label: sylius.ui.position sortable: ~ options: - template: "@SyliusUi/Grid/Field/position.html.twig" + template: "@SyliusUi/grid/field/position.html.twig" vars: th_class: "w-1 text-center" td_class: "text-center" diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml index f0448ece48..a5539c5a13 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml @@ -23,7 +23,7 @@ sylius_grid: path: . sortable: ~ options: - template: "@SyliusUi/Grid/Field/nameAndDescription.html.twig" + template: "@SyliusUi/grid/field/name_and_description.html.twig" vars: th_class: "w-100" code: diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml index 5391ee350c..f3ed6424f2 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml @@ -16,7 +16,7 @@ sylius_grid: label: sylius.ui.position sortable: ~ options: - template: "@SyliusUi/Grid/Field/position.html.twig" + template: "@SyliusUi/grid/field/position.html.twig" vars: th_class: "w-1 text-center" td_class: "text-center" diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml index 3538ff4c9f..08dbb62bd7 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml @@ -14,7 +14,7 @@ sylius_grid: path: . sortable: name options: - template: "@SyliusUi/Grid/Field/nameAndDescription.html.twig" + template: "@SyliusUi/grid/field/name_and_description.html.twig" code: type: twig label: sylius.ui.code diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml index f2301c44a5..babffa1244 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml @@ -31,7 +31,7 @@ sylius_grid: label: sylius.ui.amount sortable: ~ options: - template: "@SyliusUi/Grid/Field/percent.html.twig" + template: "@SyliusUi/grid/field/percent.html.twig" filters: startDate: type: date diff --git a/src/Sylius/Bundle/ShopBundle/Resources/config/grids/account/order.yml b/src/Sylius/Bundle/ShopBundle/Resources/config/grids/account/order.yml index e0de8efcaf..612c44f1d2 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/config/grids/account/order.yml +++ b/src/Sylius/Bundle/ShopBundle/Resources/config/grids/account/order.yml @@ -45,7 +45,7 @@ sylius_grid: label: sylius.ui.state sortable: ~ options: - template: "@SyliusUi/Grid/Field/label.html.twig" + template: "@SyliusUi/grid/field/label.html.twig" vars: labels: "@SyliusShop/account/order/label/state" actions: diff --git a/src/Sylius/Bundle/UiBundle/Controller/SecurityController.php b/src/Sylius/Bundle/UiBundle/Controller/SecurityController.php index fb710ccd42..65334d488b 100644 --- a/src/Sylius/Bundle/UiBundle/Controller/SecurityController.php +++ b/src/Sylius/Bundle/UiBundle/Controller/SecurityController.php @@ -47,7 +47,7 @@ final class SecurityController $options = $request->attributes->get('_sylius', []); - $template = $options['template'] ?? '@SyliusUi/Security/login.html.twig'; + $template = $options['template'] ?? '@SyliusUi/security/login.html.twig'; $formType = $options['form'] ?? SecurityLoginType::class; $form = $this->formFactory->createNamed('', $formType); diff --git a/src/Sylius/Bundle/UiBundle/Resources/config/services/debug/template_event.xml b/src/Sylius/Bundle/UiBundle/Resources/config/services/debug/template_event.xml index f52220ead8..bc564fa784 100644 --- a/src/Sylius/Bundle/UiBundle/Resources/config/services/debug/template_event.xml +++ b/src/Sylius/Bundle/UiBundle/Resources/config/services/debug/template_event.xml @@ -17,7 +17,7 @@ - + diff --git a/src/Sylius/Bundle/UiBundle/templates/Block/_legacySonataEvent.html.twig b/src/Sylius/Bundle/UiBundle/templates/Block/_legacySonataEvent.html.twig deleted file mode 100644 index d7dc915668..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Block/_legacySonataEvent.html.twig +++ /dev/null @@ -1,4 +0,0 @@ -{{ sonata_block_render_event( - event, - _context|filter((value, key) => key in sonata_block_whitelisted_variables()) -) }} diff --git a/src/Sylius/Bundle/UiBundle/templates/Form/imagesTheme.html.twig b/src/Sylius/Bundle/UiBundle/templates/Form/imagesTheme.html.twig deleted file mode 100644 index e835ea55fb..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Form/imagesTheme.html.twig +++ /dev/null @@ -1,114 +0,0 @@ -{% extends '@SyliusUi/Form/theme.html.twig' %} - -{% block collection_widget -%} - {% from '@SyliusResource/Macros/notification.html.twig' import error %} - {% import _self as self %} - {% set attr = attr|merge({'class': attr.class|default ~ ' controls collection-widget'}) %} - - {% apply spaceless %} -
- {{ error(form.vars.errors) }} - - {% if prototypes|default is iterable %} - {% for key, subPrototype in prototypes %} - - {% endfor %} - {% endif %} - -
- {% for child in form %} - {{ self.collection_item(child, allow_delete, button_delete_label, loop.index0) }} - {% endfor %} -
- - {% if prototype is defined and allow_add %} - - - {{ button_add_label|trans }} - - {% endif %} -
- {% endapply %} -{%- endblock collection_widget %} - -{% macro collection_item(form, allow_delete, button_delete_label, index) %} - {% apply spaceless %} -
-
- {{ form_widget(form) }} -
- {% if allow_delete %} - - - {{ button_delete_label|trans }} - - {% endif %} -
- {% endapply %} -{% endmacro %} - -{% block sylius_product_image_widget %} - {% apply spaceless %} - {{ form_row(form.type) }} -
- -
- {% if form.vars.value.path|default(null) is not null %} - {{ form.vars.value.type }} - {% endif %} - -
- {{- form_errors(form.file) -}} -
- {% if product.id is not null and 0 != product.variants|length and not product.simple %} - {{ form_row(form.productVariants) }} - {% endif %} - {% endapply %} -{% endblock %} - -{% block sylius_taxon_image_widget %} - {% apply spaceless %} - {{ form_row(form.type) }} - {% if form.vars.value.path|default(null) is null %} -
- -
- {% else %} - {{ form.vars.value.type }} - - {% endif %} - -
- {{- form_errors(form.file) -}} -
- {% endapply %} -{% endblock %} - -{% block sylius_avatar_image_widget %} - {% apply spaceless %} - {% if form.vars.value.path|default(null) is not null %} - {{ form.vars.value.type }} - {% endif %} - -
- -
-
- {{- form_errors(form.file) -}} -
- {% endapply %} -{% endblock %} diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/enabled.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/enabled.html.twig deleted file mode 100644 index 3edf228eac..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/enabled.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{% import '@SyliusUi/Macro/labels.html.twig' as label %} -{{ label.status(data) }} diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/rawLabel.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/rawLabel.html.twig deleted file mode 100644 index 9161553403..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/rawLabel.html.twig +++ /dev/null @@ -1 +0,0 @@ -{% include '@SyliusUi/Label/_default.html.twig' with {'value': data} %} diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/yesNo.html.twig b/src/Sylius/Bundle/UiBundle/templates/Grid/Field/yesNo.html.twig deleted file mode 100644 index 22b818e6c1..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/yesNo.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{% import '@SyliusUi/Macro/labels.html.twig' as label %} -{{ label.yesNo(data) }} diff --git a/src/Sylius/Bundle/UiBundle/templates/Label/_default.html.twig b/src/Sylius/Bundle/UiBundle/templates/Label/_default.html.twig deleted file mode 100644 index 61da7e2888..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Label/_default.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{% import '@SyliusUi/Macro/labels.html.twig' as label %} -{{ label.default(value) }} diff --git a/src/Sylius/Bundle/UiBundle/templates/Security/login.html.twig b/src/Sylius/Bundle/UiBundle/templates/Security/login.html.twig deleted file mode 100644 index c450cf1ea1..0000000000 --- a/src/Sylius/Bundle/UiBundle/templates/Security/login.html.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% extends '@SyliusUi/Layout/centered.html.twig' %} - -{% block content %} -{% include '@SyliusUi/Security/_login.html.twig' %} -{% endblock %} diff --git a/src/Sylius/Bundle/UiBundle/templates/DataCollector/icon.svg b/src/Sylius/Bundle/UiBundle/templates/data_collector/icon.svg similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/DataCollector/icon.svg rename to src/Sylius/Bundle/UiBundle/templates/data_collector/icon.svg diff --git a/src/Sylius/Bundle/UiBundle/templates/DataCollector/templateBlock.html.twig b/src/Sylius/Bundle/UiBundle/templates/data_collector/template_block.html.twig similarity index 97% rename from src/Sylius/Bundle/UiBundle/templates/DataCollector/templateBlock.html.twig rename to src/Sylius/Bundle/UiBundle/templates/data_collector/template_block.html.twig index 32eb3d3a90..42fddf3b82 100644 --- a/src/Sylius/Bundle/UiBundle/templates/DataCollector/templateBlock.html.twig +++ b/src/Sylius/Bundle/UiBundle/templates/data_collector/template_block.html.twig @@ -4,7 +4,7 @@
- {{ include('@SyliusUi/DataCollector/icon.svg') }} + {{ include('@SyliusUi/data_collector/icon.svg') }} {{ collector.numberOfRenderedEvents }}
@@ -25,7 +25,7 @@ {% block menu %} - {{ include('@SyliusUi/DataCollector/icon.svg') }} + {{ include('@SyliusUi/data_collector/icon.svg') }} Template events diff --git a/src/Sylius/Bundle/UiBundle/templates/Form/theme.html.twig b/src/Sylius/Bundle/UiBundle/templates/form/theme.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Form/theme.html.twig rename to src/Sylius/Bundle/UiBundle/templates/form/theme.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/grid/field/enabled.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/enabled.html.twig new file mode 100644 index 0000000000..4a9c519c1c --- /dev/null +++ b/src/Sylius/Bundle/UiBundle/templates/grid/field/enabled.html.twig @@ -0,0 +1,2 @@ +{% import '@SyliusUi/macro/labels.html.twig' as label %} +{{ label.status(data) }} diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/humanized.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/humanized.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/humanized.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/humanized.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/label.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/label.html.twig similarity index 58% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/label.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/label.html.twig index eb07b9405f..fd3b35e256 100644 --- a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/label.html.twig +++ b/src/Sylius/Bundle/UiBundle/templates/grid/field/label.html.twig @@ -1,7 +1,7 @@ {% set value = 'sylius.ui.' ~ data %} {% if options.vars.labels is defined %} - {% include [(options.vars.labels ~ '/' ~ data ~ '.html.twig'), '@SyliusUi/Label/_default.html.twig'] with {'value': value} %} + {% include [(options.vars.labels ~ '/' ~ data ~ '.html.twig'), '@SyliusUi/label/_default.html.twig'] with {'value': value} %} {% else %} - {% include '@SyliusUi/Label/_default.html.twig' with {'value': value} %} + {% include '@SyliusUi/label/_default.html.twig' with {'value': value} %} {% endif %} diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/logAction.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/log_action.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/logAction.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/log_action.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/logData.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/log_data.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/logData.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/log_data.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/nameAndDescription.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/name_and_description.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/nameAndDescription.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/name_and_description.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/percent.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/percent.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/percent.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/percent.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/position.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/position.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/position.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/position.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/grid/field/raw_label.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/raw_label.html.twig new file mode 100644 index 0000000000..9b93beadd4 --- /dev/null +++ b/src/Sylius/Bundle/UiBundle/templates/grid/field/raw_label.html.twig @@ -0,0 +1 @@ +{% include '@SyliusUi/label/_default.html.twig' with {'value': data} %} diff --git a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/state.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/state.html.twig similarity index 58% rename from src/Sylius/Bundle/UiBundle/templates/Grid/Field/state.html.twig rename to src/Sylius/Bundle/UiBundle/templates/grid/field/state.html.twig index eb07b9405f..fd3b35e256 100644 --- a/src/Sylius/Bundle/UiBundle/templates/Grid/Field/state.html.twig +++ b/src/Sylius/Bundle/UiBundle/templates/grid/field/state.html.twig @@ -1,7 +1,7 @@ {% set value = 'sylius.ui.' ~ data %} {% if options.vars.labels is defined %} - {% include [(options.vars.labels ~ '/' ~ data ~ '.html.twig'), '@SyliusUi/Label/_default.html.twig'] with {'value': value} %} + {% include [(options.vars.labels ~ '/' ~ data ~ '.html.twig'), '@SyliusUi/label/_default.html.twig'] with {'value': value} %} {% else %} - {% include '@SyliusUi/Label/_default.html.twig' with {'value': value} %} + {% include '@SyliusUi/label/_default.html.twig' with {'value': value} %} {% endif %} diff --git a/src/Sylius/Bundle/UiBundle/templates/grid/field/yes_no.html.twig b/src/Sylius/Bundle/UiBundle/templates/grid/field/yes_no.html.twig new file mode 100644 index 0000000000..b873a5ccb5 --- /dev/null +++ b/src/Sylius/Bundle/UiBundle/templates/grid/field/yes_no.html.twig @@ -0,0 +1,2 @@ +{% import '@SyliusUi/macro/labels.html.twig' as label %} +{{ label.yesNo(data) }} diff --git a/src/Sylius/Bundle/UiBundle/templates/label/_default.html.twig b/src/Sylius/Bundle/UiBundle/templates/label/_default.html.twig new file mode 100644 index 0000000000..14e7edb114 --- /dev/null +++ b/src/Sylius/Bundle/UiBundle/templates/label/_default.html.twig @@ -0,0 +1,2 @@ +{% import '@SyliusUi/macro/labels.html.twig' as label %} +{{ label.default(value) }} diff --git a/src/Sylius/Bundle/UiBundle/templates/Layout/centered.html.twig b/src/Sylius/Bundle/UiBundle/templates/layout/centered.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Layout/centered.html.twig rename to src/Sylius/Bundle/UiBundle/templates/layout/centered.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Macro/labels.html.twig b/src/Sylius/Bundle/UiBundle/templates/macro/labels.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Macro/labels.html.twig rename to src/Sylius/Bundle/UiBundle/templates/macro/labels.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Macro/messages.html.twig b/src/Sylius/Bundle/UiBundle/templates/macro/messages.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Macro/messages.html.twig rename to src/Sylius/Bundle/UiBundle/templates/macro/messages.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Security/Form/_credentials.html.twig b/src/Sylius/Bundle/UiBundle/templates/security/Form/_credentials.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Security/Form/_credentials.html.twig rename to src/Sylius/Bundle/UiBundle/templates/security/Form/_credentials.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Security/Form/_submit.html.twig b/src/Sylius/Bundle/UiBundle/templates/security/Form/_submit.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Security/Form/_submit.html.twig rename to src/Sylius/Bundle/UiBundle/templates/security/Form/_submit.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/Security/_error.html.twig b/src/Sylius/Bundle/UiBundle/templates/security/_error.html.twig similarity index 75% rename from src/Sylius/Bundle/UiBundle/templates/Security/_error.html.twig rename to src/Sylius/Bundle/UiBundle/templates/security/_error.html.twig index 6fd2dec6d6..7b9b6ae130 100644 --- a/src/Sylius/Bundle/UiBundle/templates/Security/_error.html.twig +++ b/src/Sylius/Bundle/UiBundle/templates/security/_error.html.twig @@ -1,4 +1,4 @@ -{% import '@SyliusUi/Macro/messages.html.twig' as messages %} +{% import '@SyliusUi/macro/messages.html.twig' as messages %} {% if (last_error is defined) and (last_error is not null) %}
diff --git a/src/Sylius/Bundle/UiBundle/templates/Security/_login.html.twig b/src/Sylius/Bundle/UiBundle/templates/security/_login.html.twig similarity index 91% rename from src/Sylius/Bundle/UiBundle/templates/Security/_login.html.twig rename to src/Sylius/Bundle/UiBundle/templates/security/_login.html.twig index 65728a153e..e529f991a9 100644 --- a/src/Sylius/Bundle/UiBundle/templates/Security/_login.html.twig +++ b/src/Sylius/Bundle/UiBundle/templates/security/_login.html.twig @@ -1,4 +1,4 @@ -{% form_theme form '@SyliusUi/Form/theme.html.twig' %} +{% form_theme form '@SyliusUi/form/theme.html.twig' %}
diff --git a/src/Sylius/Bundle/UiBundle/templates/Security/_logo.html.twig b/src/Sylius/Bundle/UiBundle/templates/security/_logo.html.twig similarity index 100% rename from src/Sylius/Bundle/UiBundle/templates/Security/_logo.html.twig rename to src/Sylius/Bundle/UiBundle/templates/security/_logo.html.twig diff --git a/src/Sylius/Bundle/UiBundle/templates/security/login.html.twig b/src/Sylius/Bundle/UiBundle/templates/security/login.html.twig new file mode 100644 index 0000000000..6f44217c02 --- /dev/null +++ b/src/Sylius/Bundle/UiBundle/templates/security/login.html.twig @@ -0,0 +1,5 @@ +{% extends '@SyliusUi/layout/centered.html.twig' %} + +{% block content %} +{% include '@SyliusUi/security/_login.html.twig' %} +{% endblock %}