dpgaspar / Flask-AppBuilder

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
BSD 3-Clause "New" or "Revised" License
4.69k stars 1.36k forks source link

AdminLTE - Theme Support (help wanted) #1946

Closed mariofix closed 1 year ago

mariofix commented 2 years ago

Hello all, I'm working on a way to update the current default theme to AdminLTE and -hopefully- end up with a nicer way to create new templates, my working repo is at https://github.com/mariofix/fab-theme-adminlte

right now I'm taking the route to replace and update the original template files under "templates/appbuilder/", I copied them to my app and started changing html.

If anyone would like to contribute or making recommendations as to how to do this, feel free to do so. I'm @mariofix in most networks

alitrack commented 2 years ago

Which version FAB you support? I tried your theme, got the following error,

jquery.min.js:2 Uncaught TypeError: $(...).datetimepicker is not a function
    at HTMLDocument.<anonymous> (ab.js:50:31)
    at e (jquery.min.js:2:30038)
    at t (jquery.min.js:2:30340)

tested on fab 4.1.5 and 4.1.6 with the same issue.

mariofix commented 2 years ago

Hi @alitrack thanks for your reply, I would be very surprised if that worked, it's only the first commit not close to test.

I'm looking for contributors for this project, if you'd like to help in make it possible, let me know.

alitrack commented 2 years ago

You just want someone to make the theme work for you, right?

mariofix commented 2 years ago

not at all, i'm really looking for help to add theme support to FAB, it's the one thing preventing me to use FAB in my projects is the lack of themes (yeah, I know...). I have a few django projects where I use django-baton to overwrite the default theme.

I was looking for a similar way to do this (I could just copy what's in django-baton and try to apply it to FAB, but i prefer to start something new), I first tried to overwrite the files in appbuilder with some python magic, but i decided on the long road described in the documentation:

I've done my first commit and also decided to ask for help in case anyone was interested into helping achieve this, but I understand why you think I just wanted someone to do this for me.

Anyway, if you want to help or recommend anything in any way, it would be welcome.

PS: If you're asking "why?" I just really really really don't like top-side menus.