-
-
Notifications
You must be signed in to change notification settings - Fork 9
SYL-4341 Remove documentation links #74
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
SYL-4341 Remove documentation links #74
Conversation
tests/Application/templates/bundles/SyliusAdminBundle/PaymentMethod/_form.html.twig
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if adding this macro makes sense, as these keys are used once 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just create form_theme for each field and set the links in there?
Then we don't have to if
into oblivion, but have a block per case
@@ -1,12 +1,20 @@ | |||
{% import '@SyliusAdmin/PaymentMethod/_documentation_helpers.html.twig' as doc %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% import '@SyliusAdmin/PaymentMethod/_documentation_helpers.html.twig' as doc %} | |
{% import '@SyliusMolliePlugin/Admin/PaymentMethod/_documentation_helpers.html.twig' as doc %} |
Custom templates should live in the app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just create form_theme for each field and set the links in there?
Then we don't have to if
into oblivion, but have a block per case
7ca1764
to
f2213e1
Compare
tests/Application/templates/bundles/SyliusAdminBundle/PaymentMethod/_form.html.twig
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newly added templates should be added to the proper plugin templates directory, the others could be refactored in a separate PR. Could you open such a PR after merging this one? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! 🫡
Task: https://sylius.atlassian.net/browse/SYL-4341