Files
project-managment/templates/pages/projects/project_list.html
T
sankalp 001e6fac48 feat(templates): add core UItemplates for authentication and ticket management
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.
2026-05-27 23:32:54 +05:45

28 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %}Projects{% endblock %}
{% block content %}
<div class="flex justify-between items-center mb-4">
<h1 class="text-3xl font-bold">Projects</h1>
{% if user.is_admin %}
<a href="{% url 'project_create' %}" class="btn btn-primary">New Project</a>
{% endif %}
</div>
<div class="grid gap-4">
{% for project in projects %}
<div class="card bg-base-100 shadow-xl">
<div class="card-body">
<h2 class="card-title">
<a href="{% url 'project_detail' project.pk %}" class="hover:text-primary">{{ project.name }}</a>
</h2>
<p>Status: <span class="badge badge-{% if project.status == 'active' %}success{% elif project.status == 'planning' %}info{% elif project.status == 'review' %}warning{% else %}neutral{% endif %}">{{ project.get_status_display }}</span></p>
<p>Client: {{ project.client.username }}</p>
</div>
</div>
{% empty %}
<div class="card bg-base-100 shadow-xl">
<div class="card-body text-center">No projects yet.</div>
</div>
{% endfor %}
</div>
{% endblock %}