feat(shared): add dynamic finance dashboard link to navbar
The navbar now includes a functional link to the finance dashboard using Django's URL template tag, replacing the placeholder href.
**New Features**
- Added dynamic URL resolution for the finance dashboard link using `{% url 'finance_dashboard' %}`
**Enhancements & Refinements**
- Replaced static placeholder href (`#`) with a functional Django URL tag for better navigation
```
This commit is contained in:
3 files changed
+104
-743
No files matched your search
@@ -28,8 +28,9 @@
|
||||
|
||||
<div class="stat bg-neutral-secondary-soft rounded-lg shadow-sm border border-default">
|
||||
<div class="stat-title text-body">Net Profit</div>
|
||||
<div class="stat-value {% if net_profit >= 0 %}text-success{% else %}text-error{% endif %}">Rs.{{
|
||||
net_profit|floatformat:2 }}</div>
|
||||
<div class="stat-value {% if net_profit >= 0 %}text-success{% else %}text-error{% endif %}">
|
||||
Rs.{{ net_profit|floatformat:2 }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="stat bg-neutral-secondary-soft rounded-lg shadow-sm border border-default">
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"
|
||||
<a href="{% url 'finance_dashboard' %}"
|
||||
class="flex items-center py-2 px-3 text-heading rounded hover:bg-neutral-tertiary md:hover:bg-transparent md:hover:text-fg-brand md:p-0 md:dark:hover:bg-transparent transition-colors duration-200">
|
||||
<svg class="w-5 h-5 me-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24"
|
||||
height="24" fill="none" viewBox="0 0 24 24">
|
||||
|
||||
Reference in new issue
Block a user