# Store Admin Frontend - Alpine.js/Jinja2 Page Template Guide ## 📋 Overview This guide provides complete templates for creating new store admin pages using the established Alpine.js + Jinja2 architecture. Follow these patterns to ensure consistency across the store portal. --- ## 🎯 Quick Reference ### File Structure for New Page ``` app/ ├── templates/store/ │ └── [page-name].html # Jinja2 template ├── static/store/js/ │ └── [page-name].js # Alpine.js component └── routes/ └── store_pages.py # Route registration ``` ### Checklist for New Page - [ ] Create Jinja2 template extending base.html - [ ] Create Alpine.js JavaScript component - [ ] Register route in store_pages.py - [ ] Add navigation link to sidebar.html - [ ] Test authentication - [ ] Test data loading - [ ] Test responsive design --- ## 📄 Template Structure ### 1. Jinja2 Template **File:** `app/templates/store/[page-name].html` ```jinja2 {# app/templates/store/[page-name].html #} {% extends "store/base.html" %} {# Page title for browser tab #} {% block title %}[Page Name]{% endblock %} {# Alpine.js component name - use data() for simple pages or store[PageName]() for complex pages #} {% block alpine_data %}store[PageName](){% endblock %} {# Page content #} {% block content %}
Loading data...
Error
| Name | Status | Date | Actions |
|---|---|---|---|
|
No items found. |
|||
|
|
|
||