New Features - Added `templates/base.html` with Tailwind, HTMX, and project management title block. - Introduced `templates/base/base.html` as a minimal fallback layout. - Created `templates/components/navbar.html` with authenticated navigation menu. - Implemented `templates/pages/accounts/login.html` for user authentication. - Developed ticket management templates: - `templates/pages/tickets/ticket_list.html` for displaying tickets. - `templates/pages/tickets/ticket_form.html` for creating/editing tickets. Enhancements - Structured all new templates to inherit from the shared base layout. - Integrated Tailwind CSS and HTMX via CDN for consistent styling and interactivity. - Provided placeholder blocks for extra head and scripts to allow future extensions. Bug Fixes- No bug fixes included in this commit.
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<nav class="navbar bg-base-100 shadow-sm mb-4">
|
|
<div class="flex-1">
|
|
<a href="{% url 'home' %}" class="btn btn-ghost text-xl">Project Manager</a>
|
|
</div>
|
|
<div class="flex-none">
|
|
<ul class="menu menu-horizontal px-1">
|
|
<li><a href="{% url 'project_list' %}">Projects</a></li>
|
|
<li><a href="{% url 'board_list' %}">Boards</a></li>
|
|
<li><a href="{% url 'issue_list' %}">Issues</a></li>
|
|
<li><a href="{% url 'ticket_list' %}">Tickets</a></li>
|
|
<li><a href="{% url 'invoice_list' %}">Finance</a></li>
|
|
{% if user.is_admin %}
|
|
<li><a href="{% url 'activity_list' %}">Activity</a></li>
|
|
<li><a href="{% url 'user_list' %}">Users</a></li>
|
|
{% endif %}
|
|
<li>
|
|
<details>
|
|
<summary>{{ user.username }}</summary>
|
|
<ul class="bg-base-100 rounded-t-none p-2">
|
|
<li><a href="{% url 'profile' %}">Profile</a></li>
|
|
<li><a href="{% url 'logout' %}">Logout</a></li>
|
|
</ul>
|
|
</details>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|