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

New Feature Idea: Always use floating-fields throughout an entire project #163

Open
jmoppel opened this issue Nov 19, 2023 · 2 comments
Open

Comments

@jmoppel
Copy link
Contributor

jmoppel commented Nov 19, 2023

I think it would be cool if we added the option to use floating fields by default on all <input> fields throughout an entire project. Maybe there is a better way to do it, but I was thinking we could add a boolean Django setting CRISPY-FLOATING-FIELDS. And (maybe one day) add a helper attribute that would allow for overriding the setting on a per-form basis.

I'm a little uncertain if my idea aligns with crispy-bootstrap5's plans, considering the introduction of field groups in Django 5.0. I'm interested in people's thoughts about this feature, if a PR would be accepted, and how it would integrate with future plans for this package? Thanks!

@swaterfall
Copy link

Seconded! Generally if you're going to use floating fields it's going to be for all fields as part of the design rather than a single floating field so it makes sense to have this as a default option.

@marc-gist
Copy link

Seconded! Generally if you're going to use floating fields it's going to be for all fields as part of the design rather than a single floating field so it makes sense to have this as a default option.

Default no... as floating fields are huge... however, a single option, rather than having to use a Layout would be great for when you do whant to do this.

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

No branches or pull requests

3 participants