flask-bootstrap icon indicating copy to clipboard operation
flask-bootstrap copied to clipboard

Bootstrap 4 support

Open jeevcat opened this issue 7 years ago • 29 comments

Is there an easy way to switch over to Bootstrap 4, while using this extension? I understand it's still in Alpha, but I figured it might be something other people might also be interested in.

jeevcat avatar Jun 29 '17 18:06 jeevcat

Unfortunately, I am a bit strapped for time and haven't had a look at Bootstrap 4 yet - I'm waiting for it to be released first. Your best option is a fork to try it out.

Usually changing version numbers is straightforward, you'll have to find out yourself how backwards-incompatible the whole thing really is =).

On Thu, Jun 29, 2017 at 8:06 PM, Sam Jeeves [email protected] wrote:

Is there an easy way to switch over to Bootstrap 4, while using this extension? I understand it's still in Alpha, but I figured it might be something other people might also be interested in.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mbr/flask-bootstrap/issues/162, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGv8cCb5-eQC2ZhpDU8-ZUet4BVZM01ks5sI-ebgaJpZM4OJq_Y .

mbr avatar Jun 29 '17 20:06 mbr

Okay thanks for the reply.

I've forked the repo and managed to get v4.0.0-Alpha.6 working. I had to include Tether.js which is required by Bootstrap 4 for tooltips apparently. I also had to fiddle a little with the versioning regex due to the -alpha-style version numbers.

jeevcat avatar Jun 30 '17 20:06 jeevcat

@jeevcat If you have something that works, I'd love to check it out on your fork once you push it.

cofinley avatar Jul 02 '17 02:07 cofinley

I actually already pushed it 2 days ago. Check it out here: https://github.com/jeevcat/flask-bootstrap-4-alpha.

Please let me know if it works for you.

jeevcat avatar Jul 02 '17 09:07 jeevcat

I was mainly looking for updated wtforms. This is a step in the right direction though. I've updated the forms part on my clone, but kind of towards a side project which may not fall in line with the styling here. Thank you again.

cofinley avatar Jul 07 '17 00:07 cofinley

Yeah, the main issue I've found is the WTForms macros will need a heavy overhaul for v4 forms. Otherwise @jeevcat's fork is WFM.

OverlordQ avatar Jul 12 '17 22:07 OverlordQ

I'll try to make a proper pull request starting from @jeevcat repository.

beenje avatar Aug 03 '17 11:08 beenje

I just created the pull request https://github.com/mbr/flask-bootstrap/pull/164

beenje avatar Aug 07 '17 21:08 beenje

What do we need to push this forward?

MelleB avatar Apr 10 '18 12:04 MelleB

I will be looking into this on Sunday.

The current blocker is that I want to deprecate quick_forms in favor of the new, dominate-based quick_forms which has much more maintaineable code. Otherwise, I would have done this already.

On Tue, Apr 10, 2018 at 2:53 PM, Melle [email protected] wrote:

What do we need to push this forward?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mbr/flask-bootstrap/issues/162#issuecomment-380087331, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGv8cssD4lh1EOyhmHRQCwAFZTUym2Xks5tnKsugaJpZM4OJq_Y .

mbr avatar Apr 10 '18 13:04 mbr

And FWIW, I am sorry for the delay =(

On Tue, Apr 10, 2018 at 3:06 PM, Marc Brinkmann [email protected] wrote:

I will be looking into this on Sunday.

The current blocker is that I want to deprecate quick_forms in favor of the new, dominate-based quick_forms which has much more maintaineable code. Otherwise, I would have done this already.

On Tue, Apr 10, 2018 at 2:53 PM, Melle [email protected] wrote:

What do we need to push this forward?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mbr/flask-bootstrap/issues/162#issuecomment-380087331, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGv8cssD4lh1EOyhmHRQCwAFZTUym2Xks5tnKsugaJpZM4OJq_Y .

mbr avatar Apr 10 '18 13:04 mbr

Recent bug I found with the 4.0 branch is that pagination.html needs the appropriate .page-link and .page-item classes.

cofinley avatar Apr 10 '18 15:04 cofinley

Eagerly waiting...

mcnullity avatar May 01 '18 14:05 mcnullity

+1

joncutrer avatar May 11 '18 16:05 joncutrer

Bootstrap 4 has moved well into the beta version guys, any updates on this?

slidenerd avatar May 14 '18 04:05 slidenerd

B4 left beta back in January, now it's at 4.1.1.

zgoda avatar May 30 '18 10:05 zgoda

For people who interested, I am maintaining Bootstrap-Flask that based on Flask-Bootstrap and support Bootstrap 4.

greyli avatar Jul 01 '18 10:07 greyli

Would love to see this as well, as I'm using cards for example.

louisguitton avatar Jul 24 '18 15:07 louisguitton

+1

jaikumarm avatar Aug 30 '18 05:08 jaikumarm

+1

joaqo avatar Feb 10 '19 09:02 joaqo

Hi Marc, I was wondering why all this trouble with dominate? WTForms generate the html with __call__. Am I missing something?

I ask because I might be prepared to do some work on this issue, but first I need to understand the choices and restrictions.

Best regards

hfilimonescu avatar Mar 26 '19 19:03 hfilimonescu

Same here, I'm new to Bootstrap and Flask yet the docs and ideas behind flask-bootstrap are gorgeous so I'm interested in seeing it move forward

yurzo avatar Mar 31 '19 02:03 yurzo

It's been 2 years since the last commit to this repo, and over a year since (it seems like) @jeevcat 's patch was finalized. Given the lack of activity, should we assume that this project is dead?

I really want to move my Flask projects to Bootstrap 4, but would like to avoid refactoring everything twice. If I move to some other solution and then this package comes back to life and I need to move back, that's going to be irritating.

mpounsett avatar Aug 27 '19 17:08 mpounsett

Ping @mbr. Would also love for bootstrap 4 to be supported. Thanks in advance!

bartkamphorst avatar Oct 08 '19 13:10 bartkamphorst

Likewise ping @mbr. Really looking to move to bootstrap 4 (including with WTF) so be good to know if this is imminent or whether I should roll my own. TIA!

ghost avatar Oct 15 '19 10:10 ghost

@mbr Any updates regarding bootstrap 4 support?

bartkamphorst avatar Jan 07 '20 13:01 bartkamphorst

@bartkamphorst I have made a new package witg Bootstrap 4, based on Flask-Bootstrap. If you want, you can give it a spin. Flask-BS4

hfilimonescu avatar Jan 10 '20 17:01 hfilimonescu

This issue has been open now for 3 years. Seems to be quite dead.

on 10 Apr 2018: I will be looking into this on Sunday.

Will there still be a version for bootstrap 4?

maxtrem avatar Jun 02 '20 07:06 maxtrem

@mbr Maybe it's time to find a new maintainer for this project?

mpounsett avatar Jun 02 '20 13:06 mpounsett