feat: add sidebar

This commit is contained in:
Herculino Trotta
2025-08-04 22:10:44 -03:00
parent c09ad0e49d
commit dd1f6a6ef2
3 changed files with 164 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<li>
<div class="d-flex align-items-center" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
<span
class="text-muted small fw-bold text-uppercase tw:lg:hidden tw:lg:group-hover:inline">{{ title }}</span>
<hr class="flex-grow-1"/>
</div>
</li>

View File

@@ -0,0 +1,8 @@
{% load active_link %}
<li>
<a href="{% url url %}"
class="tw:text-wrap tw:lg:text-nowrap tw:lg:text-sm d-flex align-items-center text-decoration-none p-2 rounded-3 sidebar-item {% active_link views=active css_class="sidebar-active" %}">
<i class="{{ icon }} fa-fw"></i>
<span class="ms-3 fw-medium tw:lg:invisible tw:lg:group-hover:visible tw:lg:group-hover:truncate tw:lg:group-focus:truncate tw:lg:group-hover:text-ellipsis tw:lg:group-focus:text-ellipsis">{{ title }}</span>
</a>
</li>