Skip to content
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

[WebBundle] Fix invalid html markup for payments forms #2096

Merged
merged 1 commit into from
Dec 9, 2014

Conversation

stloyd
Copy link
Contributor

@stloyd stloyd commented Nov 3, 2014

Added easier way to change states & hide editing for non super admins.

Fixes #1993, replaces #2005.

@stloyd
Copy link
Contributor Author

stloyd commented Nov 6, 2014

@pjedrzejewski @Arn0d ping...

@psyray
Copy link
Contributor

psyray commented Nov 7, 2014

Hi,

I think too that hide the form is the best solution ;)

{{ buttons.edit(path('sylius_backend_payment_update', {'id': payment.id})) }}
{%- endif %}

{% for transition in ['cancel', 'complete', 'refund'] if sm_can(payment, transition, 'sylius_payment') -%}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not create a twig partial for this form ?
This is the same in the _details view, no, ? except for the hr tag.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, maybe it makes sense?

Added easier way to change states & hide editing for non super admins
@stloyd
Copy link
Contributor Author

stloyd commented Dec 2, 2014

@pjedrzejewski @Arn0d ping...

@stloyd
Copy link
Contributor Author

stloyd commented Dec 9, 2014

@pjedrzejewski Can we get this fix merged?

pjedrzejewski pushed a commit that referenced this pull request Dec 9, 2014
[WebBundle] Fix invalid html markup for payments forms
@pjedrzejewski pjedrzejewski merged commit 4e1e857 into Sylius:master Dec 9, 2014
@pjedrzejewski
Copy link
Member

Thanks Joseph! 👍

@stloyd stloyd deleted the bugfix/payments_forms branch December 9, 2014 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[WebBundle] Button 'save' doesn't submit form in order backend edit
3 participants