Proposal: migrate the Open Front End (OFE) from Bootstrap 4 to Bootstrap 5 #5783
manumishra12
started this conversation in
Ideas and feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Proposal: migrate the Open Front End (OFE) from Bootstrap 4 to Bootstrap 5
Current state
The OFE web app currently has a mixed Bootstrap setup:
community/front-end/ofe/website/ghpcfe/templates/base_generic.htmlloads Bootstrap 4.6.0 (CSS + JS bundle) and jQuery 3.5.1 from a CDN.requirements.txtalready pinscrispy-bootstrap5(anddjango-crispy-forms), so crispy-rendered forms are being generated for Bootstrap 5 markup while the page itself ships Bootstrap 4.This mismatch means crispy form output and the base layout target different Bootstrap major versions, and the templates rely on Bootstrap 4 JS behaviors (
data-toggle,data-target) that were renamed in Bootstrap 5 (data-bs-toggle,data-bs-target).Why it's worth doing
crispy-bootstrap5forms that are already in use.Rough scope
base_generic.htmlto Bootstrap 5.3.x (and review whether jQuery is still needed — several templates still use it directly, e.g.jquery.cookie.js, so jQuery may need to stay for now).data-toggle/data-target→data-bs-toggle/data-bs-targetand update dropdown/collapse markup across the ~14 templates that use them.ml-auto→ms-auto,*-left/right→*-start/end).crispy-bootstrap5.Questions for maintainers before I start
I'm happy to do the work and keep the PR(s) self-contained and review-friendly — just want to confirm direction before investing in it. Thanks!
All reactions