updated
This commit is contained in:
parent
73f29cde9a
commit
3ea7c4bb51
24392
inventory/views.py
24392
inventory/views.py
File diff suppressed because it is too large
Load Diff
@ -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 %}
|
||||||
Loading…
x
Reference in New Issue
Block a user