Files
pablo 2a9407e676
CI / ci (ubuntu-24.04, 3.13) (push) Has been cancelled
feat: backoffice setup
2026-07-23 13:31:53 +02:00

24 lines
875 B
Python

from django.views.generic import TemplateView
from backoffice.mixins import BackofficeAccessMixin
SECTIONS = [
{'label': 'Productos', 'url_name': 'backoffice:product_list'},
{'label': 'Pedidos', 'url_name': 'backoffice:order_list'},
{'label': 'Pagos', 'url_name': 'backoffice:payment_list'},
{'label': 'Clientes', 'url_name': 'backoffice:customer_list'},
{'label': 'Proveedores', 'url_name': 'backoffice:provider_list'},
{'label': 'Impuestos', 'url_name': 'backoffice:tax_list'},
{'label': 'Marca y ajustes', 'url_name': 'backoffice:brand_settings'},
]
class DashboardView(BackofficeAccessMixin, TemplateView):
template_name = 'backoffice/dashboard.html'
section = 'dashboard'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['sections'] = SECTIONS
return context