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

[ProductAttribute] Product attributes feature #4846

Merged
merged 8 commits into from
Apr 25, 2016

Conversation

tuka217
Copy link
Contributor

@tuka217 tuka217 commented Apr 21, 2016

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets -
License MIT

@tuka217 tuka217 changed the title Admin attributes [WIP][ProductAttribute] Product attributes feature Apr 21, 2016

Assert::true(
$this->indexPage->isResourceOnPage(['name' => $name]),
sprintf('The product attribute with name %s should appear on page, but it do not.', $name)
Copy link
Member

Choose a reason for hiding this comment

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

'(...) it does not'.

@pjedrzejewski pjedrzejewski added the Admin AdminBundle related issues and PRs. label Apr 21, 2016
<h4 class="ui dividing header">{{ 'sylius.ui.configuration'|trans }}</h4>
<div class="ui segment configuration">
{% if form.configuration is defined %}
{% for field in form.configuration %}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you could use {% for field in form.configuration if form.configuration is defined %}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately I can't :(

@tuka217 tuka217 force-pushed the admin-attributes branch 7 times, most recently from 7f849e4 to 9b0679b Compare April 25, 2016 08:18
@tuka217 tuka217 changed the title [WIP][ProductAttribute] Product attributes feature [ProductAttribute] Product attributes feature Apr 25, 2016
templates:
form: SyliusAdminBundle:ProductAttribute:_form.html.twig
requirements:
type: text|textarea|checkbox|integer|percent|datetime|date
Copy link
Member

Choose a reason for hiding this comment

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

I know this will create a bug, but we should not restrict it here, because otherwise we prevent the developer from introducing his own types.

@pjedrzejewski pjedrzejewski merged commit ffc304a into Sylius:master Apr 25, 2016
@pjedrzejewski
Copy link
Member

Nice work Ania, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants