This commit is contained in:
Faheedkhan 2025-08-28 14:04:01 +03:00
parent 73f29cde9a
commit 3ea7c4bb51
2 changed files with 12220 additions and 12220 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +1,25 @@
{% comment %} {% extends 'base.html' %} {% comment %} {% extends 'base.html' %}
{% load i18n static custom_filters django_ledger %} {% load i18n static custom_filters django_ledger %}
{% block content %} {% block content %}
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
{% if request.is_sales and not request.is_manager and not request.is_dealer %} {% if request.is_sales and not request.is_manager and not request.is_dealer %}
{% url 'sales_dashboard' request.dealer.slug as dashboard_url %} {% url 'sales_dashboard' request.dealer.slug as dashboard_url %}
{% else %} {% else %}
{% url 'general_dashboard' request.dealer.slug as dashboard_url %} {% url 'general_dashboard' request.dealer.slug as dashboard_url %}
{% endif %} {% endif %}
<div id="dashboard-content" <div id="dashboard-content"
hx-get="{{ dashboard_url }}" hx-get="{{ dashboard_url }}"
hx-trigger="load" hx-trigger="load"
hx-target="#dashboard-content" hx-target="#dashboard-content"
hx-swap="innerHTML"> hx-swap="innerHTML">
<div class="spinner-container"> <div class="spinner-container">
<div class="spinner"></div> <div class="spinner"></div>
<p>Loading dashboard...</p> <p>Loading dashboard...</p>
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endcomment %} {% endblock %} {% endcomment %}