Skip to content

Commit

Permalink
OP-558 - update plugin to Sylius 2 - update components and templates …
Browse files Browse the repository at this point in the history
…in xml files
dariusz-rup committed Jan 10, 2025
1 parent 1b1223f commit 6b0ee9b
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions config/grids/admin/automatic_blacklisting_configuration.yaml
Original file line number Diff line number Diff line change
@@ -19,13 +19,13 @@ sylius_grid:
label: sylius.ui.enabled
sortable: ~
options:
template: "@SyliusUi/Grid/Field/enabled.html.twig"
template: "@SyliusUi/grid/field/enabled.html.twig"
addFraudSuspicion:
type: twig
label: bitbag_sylius_blacklist_plugin.ui.add_fraud_suspicion_row_after_exceed_limit
sortable: ~
options:
template: "@SyliusUi/Grid/Field/yesNo.html.twig"
template: "@SyliusUi/grid/field/yes_no.html.twig"
filters:
name:
type: string
@@ -50,4 +50,4 @@ sylius_grid:
type: delete
main:
create:
type: create
type: create
4 changes: 2 additions & 2 deletions config/grids/admin/blacklisting_rule.yaml
Original file line number Diff line number Diff line change
@@ -28,13 +28,13 @@ sylius_grid:
label: sylius.ui.enabled
sortable: ~
options:
template: "@SyliusUi/Grid/Field/enabled.html.twig"
template: "@SyliusUi/grid/field/enabled.html.twig"
onlyForGuests:
type: twig
label: bitbag_sylius_blacklist_plugin.form.blacklisting_rule.only_for_guests
sortable: ~
options:
template: "@SyliusUi/Grid/Field/yesNo.html.twig"
template: "@SyliusUi/grid/field/yes_no.html.twig"
filters:
name:
type: string
6 changes: 3 additions & 3 deletions config/services/twig/component.xml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\AutomaticBlacklistingConfigurationType</argument>

<tag
name="sylius.live_component"
name="sylius.live_component.admin"
key="sylius_admin:automatic_blacklisting_configuration:form"
template="@BitBagSyliusBlacklistPlugin/AutomaticBlacklistingConfiguration/Admin/form.html.twig"
/>
@@ -32,7 +32,7 @@
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\BlacklistingRuleType</argument>

<tag
name="sylius.live_component"
name="sylius.live_component.admin"
key="sylius_admin:blacklisting_rule:form"
template="@BitBagSyliusBlacklistPlugin/BlacklistingRule/Admin/form.html.twig"
/>
@@ -47,7 +47,7 @@
<argument>%bitbag_sylius_blacklist_plugin.model.fraud_suspicion.class%</argument>
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\FraudSuspicionType</argument>

<tag name="sylius.live_component"
<tag name="sylius.live_component.admin"
key="sylius_admin:fraud_suspicion:form"
template="@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig"
/>
1 change: 1 addition & 0 deletions tests/Application/config/packages/validator.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
framework:
validation:
enable_attributes: true
email_validation_mode: strict

0 comments on commit 6b0ee9b

Please sign in to comment.