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

Create the main page for the Admin Panel #13

Closed
3 tasks
ryaustin opened this issue Jul 1, 2024 · 5 comments
Closed
3 tasks

Create the main page for the Admin Panel #13

ryaustin opened this issue Jul 1, 2024 · 5 comments
Assignees

Comments

@ryaustin
Copy link
Collaborator

ryaustin commented Jul 1, 2024

@kjcioffi I wanted to break down #2 issue down further so that it is more easily addressed:

  • create a view in views.py that returns a page store_admin.html
    • This view should have the loginrequired mixin
  • on this template render a menu as desired (e.g sidebar or vertical bar menu with the required pages, products, orders etc)
@kjcioffi
Copy link
Owner

kjcioffi commented Jul 4, 2024

Perfect, this certainly helps to clarify things. So an ability to navigate to Products, Orders, and Stores on one page?

@ryaustin
Copy link
Collaborator Author

ryaustin commented Jul 4, 2024

Yes!!

@kjcioffi
Copy link
Owner

Hey, @ryaustin.

Out of curiosity, is it a common or best practice to handle custom admins this way?

The base template contains a navigation bar, I considered whether it makes more sense to add anchor tags to the different model admins.

I'm concerned it would add duplication and white space if a page served as a "navigation page" for custom model admins. Would anchor tags in the navigation bar (in base template) fulfill this issue?

@ryaustin
Copy link
Collaborator Author

Hey Kevin, it's really just a preference - no wrong answer.

What CSS does give us though is the ability to fill the space with the rendered menu whether there are 2 or 4 options horizontally / vertically. In an ideal design, a user most likely wouldn't know if an option is missing as what they have access to should render perfectly.

So this is more cosmetic if I am understanding your question correctly.

@kjcioffi
Copy link
Owner

I will use the navigation bar on the site to handle this work. Regarding work on #3, I will create a drop-down that enables store owners to navigate and use admin operations as they see fit.

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

No branches or pull requests

2 participants