[Admin] Improve payment method styling

This commit is contained in:
Rafikooo 2024-04-23 10:55:25 +02:00
parent 3dc269f189
commit 4dc6181179
No known key found for this signature in database
GPG key ID: 4A26D8327BC2442B
11 changed files with 18 additions and 13 deletions

View file

@ -20,15 +20,17 @@ twig_hooks:
template: '@SyliusAdmin/payment_method/form/sections/gateway_configuration.html.twig'
translations:
template: '@SyliusAdmin/payment_method/form/sections/translations.html.twig'
'sylius_admin.payment_method.create.content.form.sections.general':
code:
template: '@SyliusAdmin/payment_method/form/sections/general/code.html.twig'
enabled:
template: '@SyliusAdmin/payment_method/form/sections/general/enabled.html.twig'
position:
template: '@SyliusAdmin/payment_method/form/sections/general/position.html.twig'
enabled:
template: '@SyliusAdmin/payment_method/form/sections/general/enabled.html.twig'
channels:
template: '@SyliusAdmin/payment_method/form/sections/general/channels.html.twig'
'sylius_admin.payment_method.create.content.form.sections.gateway_configuration':
type:
template: '@SyliusAdmin/payment_method/form/sections/gateway_configuration/type.html.twig'

View file

@ -22,18 +22,21 @@ twig_hooks:
template: '@SyliusAdmin/payment_method/form/sections/gateway_configuration.html.twig'
translations:
template: '@SyliusAdmin/payment_method/form/sections/translations.html.twig'
'sylius_admin.payment_method.update.content.form.sections.general':
code:
template: '@SyliusAdmin/payment_method/form/sections/general/code.html.twig'
enabled:
template: '@SyliusAdmin/payment_method/form/sections/general/enabled.html.twig'
position:
template: '@SyliusAdmin/payment_method/form/sections/general/position.html.twig'
enabled:
template: '@SyliusAdmin/payment_method/form/sections/general/enabled.html.twig'
channels:
template: '@SyliusAdmin/payment_method/form/sections/general/channels.html.twig'
'sylius_admin.payment_method.update.content.form.sections.gateway_configuration':
type:
template: '@SyliusAdmin/payment_method/form/sections/gateway_configuration/type.html.twig'
'sylius_admin.payment_method.update.content.form.sections.translations':
type:
template: '@SyliusAdmin/payment_method/form/sections/translations/translations.html.twig'

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.gatewayConfig.config.password, sylius_test_form_attribute('password')|merge({ label_attr: { class: 'checkbox-switch' } })) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.gatewayConfig.config.sandbox, sylius_test_form_attribute('sandbox')|merge({ label_attr: { class: 'checkbox-switch' } })) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.gatewayConfig.config.signature, sylius_test_form_attribute('signature')|merge({ label_attr: { class: 'checkbox-switch' } })) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.gatewayConfig.config.username, sylius_test_form_attribute('username')|merge({ label_attr: { class: 'checkbox-switch' } })) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.gatewayConfig.config.publishable_key, sylius_test_form_attribute('publishable-key')|merge({ label_attr: { class: 'checkbox-switch' } })) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.gatewayConfig.config.secret_key, sylius_test_form_attribute('secret-key')|merge({ label_attr: { class: 'checkbox-switch' } })) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.gatewayConfig.factoryName, sylius_test_form_attribute('factory-name')|merge({ label_attr: { class: 'checkbox-switch' } })) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.code, sylius_test_form_attribute('code')) }}
</div>

View file

@ -1,3 +1,3 @@
<div class="col-12 col-md-9">
<div class="col-12 col-md-6">
{{ form_row(hookable_data.form.position, sylius_test_form_attribute('position')) }}
</div>