Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

EZP-25002: Added buttons to add/remove options in Selection settings #739

Merged
merged 2 commits into from
Apr 7, 2017

Conversation

dpobel
Copy link
Contributor

@dpobel dpobel commented Nov 29, 2016

JIRA: https://jira.ez.no/browse/EZP-25002
Requires ezsystems/repository-forms#99

Description

This PR (with the one on repository-forms) adds a UI to add or remove options in Selection field definitions. This is done in a way that also allows to do it only with the keyboard.
(Correct terms in the button will be added later in ezsystems/repository-forms#99 once the translation system is stabilized)

Screencast:

Tests

manual tests + unit tests

@dpobel
Copy link
Contributor Author

dpobel commented Nov 29, 2016

@dpobel dpobel changed the base branch from master to 1.6 November 30, 2016 10:43
@dpobel dpobel force-pushed the ezp-25002_add_remove_options_selection branch from 422a0e3 to 9742d8a Compare November 30, 2016 10:44
@dpobel
Copy link
Contributor Author

dpobel commented Dec 1, 2016

@yannickroger @StephaneDiot QA found an issue when you remove an option in the middle of the list, apply, add an option and then apply again. To avoid that, I added 2ffa7ad (and ezsystems/repository-forms@e62f9c3 in the repository-forms pull request) so that options are reindexed after each removal/addition so that we don't loose any option.
Please review those last changes.

@bdunogier
Copy link
Member

You should rebase on top of master to avoid the PHP 5.5 travis failure.

@dpobel
Copy link
Contributor Author

dpobel commented Dec 1, 2016

@bdunogier it's for 1.6 :)

@yannickroger
Copy link
Contributor

still +1

@dpobel dpobel force-pushed the ezp-25002_add_remove_options_selection branch from 2ffa7ad to b534936 Compare December 5, 2016 10:12
@dpobel dpobel force-pushed the ezp-25002_add_remove_options_selection branch from b534936 to fcb786c Compare April 6, 2017 13:53
@dpobel dpobel changed the base branch from 1.6 to 1.7 April 6, 2017 13:54
@dpobel dpobel merged commit d598db3 into 1.7 Apr 7, 2017
@dpobel dpobel deleted the ezp-25002_add_remove_options_selection branch April 7, 2017 07:11
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants