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

Cannot create separate instances of Admin with different template mode #895

Closed
plaes opened this issue Jun 9, 2015 · 5 comments
Closed

Comments

@plaes
Copy link
Contributor

plaes commented Jun 9, 2015

Setting different template modes does not work with multiple instances like one would expect:

    admin1 = admin.Admin(app, url='/admin1')
    admin1.add_view(FirstView())

    # Create second administrative interface under /admin2
    admin2 = admin.Admin(app, url='/admin2', endpoint='admin2', template_mode='bootstrap3')
    admin2.add_view(SecondView())

The outcome is that, admin2 is still using bootstrap2.

@petrus-jvrensburg
Copy link
Contributor

I don't think this is a bug. The default value is bootstrap2, so if it's not explicitly set for admin1, then that is what I would expect.

@plaes
Copy link
Contributor Author

plaes commented Oct 19, 2018

I don't think this is a bug. The default value is bootstrap2, so if it's not explicitly set for admin1, then that is what I would expect.

@petrus-jvrensburg I'm having issue with admin2 having wrong template after explicitly setting it to different value, not admin1.

@petrus-jvrensburg
Copy link
Contributor

Aah, I see. I misread.

Any chance that you can fix this and make a PR?

@samuelhwilliams
Copy link
Contributor

This will be (technically) available in the next planned release, although we are removing the old bs2 and bs3 themes, leaving only a bs4 theme.

However, if you bring your own themes, you will be able to have multiple admin instances with different themes applied.

@princerb
Copy link
Contributor

Related to #2423

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants