[3.5][Feature][Ready] Select_and_order field type #1695
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merged and polished #1626 . Adds a new field type,
select_and_order
, which shows two columns:Screenshot
Definition
As mentioned in the original PR, it can be used exactly like
select_from_array
:Or:
The submitted value (in this case featured) should be casted to an array in the model:
And its value will be stored as JSON in the db:
["3","5","7","6"]
Thoughts, anyone? Is it clear enough from the design that you can drag items from the right to the left? Without having labels for each column? I'd hate to insert new translated lines just for this...