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

Enhancement: Follow the same templates and statics folder layout with Flask Admin #510

Open
hasansezertasan opened this issue Feb 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hasansezertasan
Copy link
Contributor

hasansezertasan commented Feb 16, 2024

Is your feature request related to a problem? Please describe.
I (and many others IMO) intend to use a single templates instance for their projects. Starlette Admin occupies some file names (that are very common) and conflicts occur. For example, base.html and index.html are quite standard file names for templates.

Also following the flask-admin's approach would make it easy to have more UI options.

- templates
  - tabler1
    - admin  # Current templates folder goes here
  - tabler2
    - admin
  - bootstrap5
    - admin
  - tailwind  # I would like to work on it in the future!
    - admin
  - ...

Describe the solution you'd like
Follow the Flask Admin layout:

Statics and Templates

@hasansezertasan hasansezertasan added the enhancement New feature or request label Feb 16, 2024
@hasansezertasan
Copy link
Contributor Author

hasansezertasan commented Feb 16, 2024

One other thing I would like to add is Flask Appbuilder's approach:

Flask-AppBuilder/flask_appbuilder/templates/appbuilder at master · dpgaspar/Flask-AppBuilder

So for this layout, we would have to update the file structure like this:

- templates
  - starlette_admin
    - tabler1
      - admin  # Current templates folder goes here
    - tabler2
      - admin
    - bootstrap5
      - admin
    - tailwind
      - admin
    - ...

@hasansezertasan
Copy link
Contributor Author

hasansezertasan commented Apr 22, 2024

Related: aminalaee/sqladmin#747
Solution: aminalaee/sqladmin#748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant