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' %}
|
||||
{% 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 %}
|
||||
Loading…
x
Reference in New Issue
Block a user