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

Add ability to remove attributes from product #1493

Merged
merged 4 commits into from
May 15, 2014

Conversation

lbaey
Copy link
Contributor

@lbaey lbaey commented May 12, 2014

I've been asked to add attribute value removal functionality to the Backend product form.
This is how I did it, what do you think ?

  • modified the form-collection.js to allow any item deletion, no just image collection item.
  • activated the zone item deletion button to show the implementation.

<div class="col-md-11">
{{ form_widget(member[form.type.vars.value], {'attr': {'class': 'select2 float-right input-large'}}) }}
</div>
<div class="col-md-1">
<a href="#" class="btn btn-danger collection-remove-btn float-left"><i class="glyphicon glyphicon-trash icon-white"></i></a>
<a href="#" class="btn btn-danger collection-remove-btn float-left" data-collection-button="delete" data-collection="sylius-zone-members" data-collection-item="{{ form.type.vars.value }}"><i class="glyphicon glyphicon-trash icon-white"></i></a>
Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC this CSS class: collection-remove-btn can be removed.

@sabliao
Copy link

sabliao commented May 13, 2014

i would love to see this integrated

@AlucardleVash
Copy link

Yes, i hope this features is integrated soon :)

@stloyd
Copy link
Contributor

stloyd commented May 14, 2014

@lbaey Please "squash" you commits a bit (at least to remove duplicates & "merge" commits), you should not "merge" master branches into your fork, you should use "rebase" functionality.

@stloyd
Copy link
Contributor

stloyd commented May 15, 2014

@lbaey I have fixed you branch, it should work now as expected =)

@lbaey
Copy link
Contributor Author

lbaey commented May 15, 2014

@stloyd thank you so much

@stloyd
Copy link
Contributor

stloyd commented May 15, 2014

@pjedrzejewski 👍 for this one ;)

pjedrzejewski pushed a commit that referenced this pull request May 15, 2014
Add ability to remove attributes from product
@pjedrzejewski pjedrzejewski merged commit 78570b9 into Sylius:master May 15, 2014
@pjedrzejewski
Copy link
Member

Thank you @lbaey!

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.

None yet

6 participants