Skip to content

[Admin] Adjust payment method views #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
May 14, 2025

Conversation

NoResponseMate
Copy link
Collaborator

No description provided.

@NoResponseMate NoResponseMate added the Admin Admin Panel related issues and PRs. label May 9, 2025
@NoResponseMate NoResponseMate force-pushed the SYL-4676/admin-payment-method-view branch from d5e719a to c6c61dd Compare May 12, 2025 14:59
@NoResponseMate NoResponseMate force-pushed the SYL-4676/admin-payment-method-view branch from c6c61dd to 16c981d Compare May 13, 2025 13:17
@NoResponseMate NoResponseMate marked this pull request as ready for review May 13, 2025 14:13
priority: 300
api_key_live:
template: '@SyliusMolliePlugin/admin/payment_method/form/sections/gateway_configuration/credentials/api_key_live.html.twig'
priority: 200
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
priority: 200
priority: 100

priority: 300
api_key_live:
template: '@SyliusMolliePlugin/admin/payment_method/form/sections/gateway_configuration/credentials/api_key_live.html.twig'
priority: 200
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
priority: 200
priority: 100

@@ -0,0 +1,5 @@
{% set form = hookable_metadata.context.form.gatewayConfig.config.api_key_live %}

{% form_theme form '@SyliusMolliePlugin/admin/payment_method/form/form_theme.html.twig' %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this to the main twig file instead of importing it in multiple places?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately the block names for forms are pretty much generic, it's prefixed as _sylius_admin_payment_method_gatewayConfig_config_ with no indicator as to what factory/gateway the config relates to, so adding the theme globally can potentially conflict with other payment providers.

{% hook 'item' %}
</div>
{% else %}
{% include '@SyliusMolliePlugin/admin/payment_method/form/sections/gateway_configuration/mollie_payment_methods/body/accordion/no_results.html.twig' %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Wojdylak Wojdylak merged commit 6be4a15 into Sylius:3.0 May 14, 2025
2 checks passed
@NoResponseMate NoResponseMate deleted the SYL-4676/admin-payment-method-view branch May 14, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Admin Panel related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants