-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix SyliusTaxationBundle when it's use as a standalone bundle #461
Fix SyliusTaxationBundle when it's use as a standalone bundle #461
Conversation
we use _sortable: true instead of _sylius: { sortable: true }
the table is the same as the one in the WebBundle without the "zone" column
i used the same form which is in Macros/buttons.html.twig I have to use a trick to keep the same design for btn-group : http://stackoverflow.com/a/17603157/1731820
<i class="icon-trash"></i> delete | ||
</a> | ||
<form action="{{ path('sylius_tax_category_delete', {'id': tax_category.id}) }}" method="post" class="btn-group inline pull-right"> | ||
<input type="hidden" name="_method" value="DELETE" class="btn"><!-- fake sibling to left --> |
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.
what is this fake sibling to left comment?
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.
class and comment are useless i will remove that.
Without this input the button doesn't look like a button which is part of an btn-group
nice catches! 👶 |
the input hidden has to be before the button, to make the button part of an btn-group
…ndle Fix SyliusTaxationBundle when it's use as a standalone bundle
Thanks Benoit! Merged! |
when i was playing with the taxation bundle i've found a bunch of issue, here are the issue i have found:
sylius_tax_category_create
andsylius_tax_rate_create
are invalid, they contains an id parameters