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