Skip to content

Conversation

@jeremystretch
Copy link
Member

Closes: #8054

  • Introduce the FIELD_CHOICES configuration parameter
  • Extend the ChoiceSet class to automatically populate configured choices from the config
  • Move CSS class definitions into the CHOICES list

While this technically fills the feature request, the complete implementation should allow users to specify arbitrary colors (e.g. red, green, or blue) rather than BS5 theme classes (e.g. primary, success, info, etc.). I've opened #8089 to address that, as its scope extends beyond just the configurable choice fields.

@jeremystretch jeremystretch merged commit 134742a into feature Dec 16, 2021
@jeremystretch jeremystretch deleted the 8054-configurable-choice-fields branch December 16, 2021 16:17
wmfgerrit pushed a commit to wikimedia/operations-software-netbox-extras that referenced this pull request Jun 15, 2022
 * CableStatusChoices renamed to LinkStatusChoices
   - https: //github.com/netbox-community/netbox/pull/7611
 * ipam.filters  renamed to ipam.filtersets
   - netbox-community/netbox#6334
 * RackGroup renamed to Location
   - netbox-community/netbox#5895
 * ColorChoices drop as_dict function
   - netbox-community/netbox#8090
 * add catch for when "How many Cassandra instances" not selected
   - https://netbox.wikimedia.org/extras/scripts/interface_automation.ProvisionServerNetwork/

Change-Id: I919f378b02a33241f69104ee9beed1104e261356
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants