-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
500 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
|
||
<container | ||
xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" | ||
> | ||
<services> | ||
<service id="bitbag_sylius_blacklist_plugin.twig.extension.labels.automatic_blacklisting_configuration" | ||
class="BitBag\SyliusBlacklistPlugin\Twig\AutomaticBlacklistingConfigurationLabelsExtension"> | ||
<argument>%bitbag.sylius_blacklist_plugin.automatic_blacklisting_rules%</argument> | ||
<tag name="twig.extension"/> | ||
</service> | ||
</services> | ||
</container> |
8 changes: 4 additions & 4 deletions
8
src/Resources/config/twig_hooks/automatic_blacklisting_configuration/create.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
twig_hooks: | ||
hooks: | ||
'bitbag_sylius_blacklist_plugin.automatic_blacklisting_configuration.create.content': | ||
'sylius_admin.automatic_blacklisting_configuration.create.content': | ||
form: | ||
component: 'bitbag_sylius_blacklist_plugin:automatic_blacklisting_configuration:form' | ||
component: 'sylius_admin:automatic_blacklisting_configuration:form' | ||
props: | ||
resource: '@=_context.resource' | ||
form: '@=_context.form' | ||
configuration: | ||
render_rest: false | ||
'bitbag_sylius_blacklist_plugin.automatic_blacklisting_configuration.create.content.form': | ||
'sylius_admin.automatic_blacklisting_configuration.create.content.form': | ||
sections: | ||
template: '@SyliusAdmin/promotion/form/sections.html.twig' | ||
template: '@BitBagSyliusBlacklistPlugin/AutomaticBlacklistingConfiguration/Admin/form.html.twig' |
13 changes: 13 additions & 0 deletions
13
src/Resources/config/twig_hooks/automatic_blacklisting_configuration/update.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
twig_hooks: | ||
hooks: | ||
'sylius_admin.automatic_blacklisting_configuration.update.content': | ||
form: | ||
component: 'sylius_admin:automatic_blacklisting_configuration:form' | ||
props: | ||
resource: '@=_context.resource' | ||
form: '@=_context.form' | ||
configuration: | ||
method: 'PUT' | ||
'sylius_admin.automatic_blacklisting_configuration.update.content.form': | ||
sections: | ||
template: '@BitBagSyliusBlacklistPlugin/AutomaticBlacklistingConfiguration/Admin/form.html.twig' |
13 changes: 13 additions & 0 deletions
13
src/Resources/config/twig_hooks/blacklisting_rule/create.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
twig_hooks: | ||
hooks: | ||
'sylius_admin.blacklisting_rule.create.content': | ||
form: | ||
component: 'sylius_admin:blacklisting_rule:form' | ||
props: | ||
resource: '@=_context.resource' | ||
form: '@=_context.form' | ||
configuration: | ||
render_rest: false | ||
'sylius_admin.blacklisting_rule.create.content.form': | ||
sections: | ||
template: '@BitBagSyliusBlacklistPlugin/BlacklistingRule/Admin/form.html.twig' |
13 changes: 13 additions & 0 deletions
13
src/Resources/config/twig_hooks/blacklisting_rule/update.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
twig_hooks: | ||
hooks: | ||
'sylius_admin.blacklisting_rule.update.content': | ||
form: | ||
component: 'sylius_admin:blacklisting_rule:form' | ||
props: | ||
resource: '@=_context.resource' | ||
form: '@=_context.form' | ||
configuration: | ||
method: 'PUT' | ||
'sylius_admin.blacklisting_rule.update.content.form': | ||
sections: | ||
template: '@BitBagSyliusBlacklistPlugin/BlacklistingRule/Admin/form.html.twig' |
13 changes: 13 additions & 0 deletions
13
src/Resources/config/twig_hooks/fraud_suspicion/create.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
twig_hooks: | ||
hooks: | ||
'sylius_admin.fraud_suspicion.create.content': | ||
form: | ||
component: 'sylius_admin:fraud_suspicion:form' | ||
props: | ||
resource: '@=_context.resource' | ||
form: '@=_context.form' | ||
configuration: | ||
render_rest: false | ||
'sylius_admin.fraud_suspicion.create.content.form': | ||
sections: | ||
template: '@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
twig_hooks: | ||
hooks: | ||
'sylius_admin.fraud_suspicion.show.content': | ||
general: | ||
template: '@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/show.html.twig' |
13 changes: 13 additions & 0 deletions
13
src/Resources/config/twig_hooks/fraud_suspicion/update.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
twig_hooks: | ||
hooks: | ||
'sylius_admin.fraud_suspicion.update.content': | ||
form: | ||
component: 'sylius_admin:fraud_suspicion:form' | ||
props: | ||
resource: '@=_context.resource' | ||
form: '@=_context.form' | ||
configuration: | ||
method: 'PUT' | ||
'sylius_admin.fraud_suspicion.update.content.form': | ||
sections: | ||
template: '@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% form_theme form '@BitBagSyliusBlacklistPlugin/Form/theme.html.twig' %} | ||
|
||
<div class="container-xl" {{ attributes }}> | ||
{{ form_start(form, {'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate', 'id': form.vars.id}}) }} | ||
{% if hookable_metadata.configuration.method is defined %} | ||
<input type="hidden" name="_method" value="{{ hookable_metadata.configuration.method }}"/> | ||
{% endif %} | ||
{{ form_errors(form) }} | ||
{{ form_widget(form._token) }} | ||
|
||
<div class="card mb-3"> | ||
<div class="card-header"> | ||
<h3 class="card-title">{{ 'sylius.ui.configuration'|trans }}</h3> | ||
</div> | ||
<div class="card-body"> | ||
<div class="row align-items-center"> | ||
<div class="col-12 col-md-6"> | ||
{{ form_row(form.name) }} | ||
</div> | ||
<div class="col-12"> | ||
{{ form_row(form.channels) }} | ||
</div> | ||
<div class="col-12"> | ||
{{ form_row(form.enabled) }} | ||
</div> | ||
<div class="col-12"> | ||
{{ form_row(form.addFraudSuspicion) }} | ||
</div> | ||
<div class="col-12"> | ||
{{ form_row(form.permittedFraudSuspicionsNumber) }} | ||
</div> | ||
<div class="col-12"> | ||
{{ form_row(form.permittedFraudSuspicionsTime) }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="card mb-3"> | ||
<div class="card-header"> | ||
<h3 class="card-title">{{ 'bitbag_sylius_blacklist_plugin.form.automatic_blacklisting_rule.rules'|trans }}</h3> | ||
</div> | ||
<div class="card-body"> | ||
<div class="row align-items-center"> | ||
<div class="col-6"> | ||
{{ form_row(form.rules, {label: false}) }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{ form_end(form, {render_rest: hookable.configuration.render_rest|default(false)}) }} | ||
</div> |
Oops, something went wrong.