Add toggle switch boolean fields#487
Draft
CelinaKellinghaus wants to merge 6 commits into
Draft
Conversation
paulapreuss
reviewed
Jun 24, 2026
There was a problem hiding this comment.
@CelinaKellinghaus This looks great so far! I have no complaints about it :-)
I couldn't really reproduce any issue with moving the code to the scss file - I simply uncommented the code in the file and removed the <style> block from the template and it was working just fine. Then I updated the main.css file by running collectstatic and copy-pasting the updated main.css in cdn_static_root (which was compiled using the scss files) to the one in static.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Boolean form fields (optimize_cap, dispatchable, renewable_asset) are now displayed as toggle switches instead of yes/no dropdowns.
A new "Settings" section was added above the economical parameters to group these fields together.
Note:
Toggle styles in _forms.scss are commented out and not functional yet.
Styles are currently applied inline in the widget.
Fixes #483.