pallets-eco / flask-admin

Simple and extensible administrative interface framework for Flask
https://flask-admin.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5.79k stars 1.57k forks source link

Horizontal forms for bootstrap 4 #2363

Open mdanse opened 1 year ago

mdanse commented 1 year ago

Currently the bootstrap 3 templates for "create" and "edit" result in horizontal forms (label and field in the same row) whereas the bootstrap 4 templates result in vertical forms (label above the field). This is inconsistent and is also inconvenient for models with many attributes since it results in very long forms. Would it be possible to either make this consistent or otherwise allow a preference to be set for vertical or horizontal forms?

mdanse commented 1 year ago

I have submitted a pull request to support this: https://github.com/flask-admin/flask-admin/pull/2368