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

custom fields: Add UI for choice fields. #9322

Closed
wants to merge 2 commits into from

Conversation

YJDave
Copy link
Collaborator

@YJDave YJDave commented May 5, 2018

GIFs or Screenshots:

chhoicefield

Part of issue #8878, followup of PR #9024

Copy link
Member

@YagoGG YagoGG left a comment

Choose a reason for hiding this comment

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

LGTM! I have been able to test this in my local dev env and it works like a charm. Thanks @YJDave.

@timabbott
Copy link
Sponsor Member

Merged, thanks @YJDave! I also added 384a8f2 on top to make this use more standard ways of storing and accessing data from the templates.

I noticed when playing around with the admin UI for creating choice fields that the "+" and "trash can" behavior for managing them is pretty busted; and also it's a bit weird that we ask users for a "value" in addition to the "Text" here:
image

(I think we probably actually just want to use a numeric ID for the choice instead of a "value", since the value never appears anywhere anyway)

Other than those things, the choice field type should be good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants