Files
project-managment/templates/pages/issues/issue_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

30 lines
1.5 KiB
HTML

{% extends "base.html" %}
{% block title %}Issues{% endblock %}
{% block content %}
<div class="flex justify-between items-center mb-4">
<h1 class="text-3xl font-bold">Issues</h1>
<a href="{% url 'issue_create' %}" class="btn btn-primary">New Issue</a>
</div>
<div class="overflow-x-auto">
<table class="table table-zebra">
<thead>
<tr><th>Title</th><th>Project</th><th>Status</th><th>Priority</th><th>Assignee</th><th>Created</th></tr>
</thead>
<tbody>
{% for issue in issues %}
<tr>
<td><a href="{% url 'issue_detail' issue.pk %}" class="link link-hover">{{ issue.title }}</a></td>
<td>{{ issue.project.name }}</td>
<td><span class="badge badge-{% if issue.status == 'open' %}info{% elif issue.status == 'in_progress' %}warning{% elif issue.status == 'resolved' %}success{% else %}neutral{% endif %}">{{ issue.get_status_display }}</span></td>
<td><span class="badge badge-{% if issue.priority == 'high' %}error{% elif issue.priority == 'medium' %}warning{% else %}info{% endif %}">{{ issue.get_priority_display }}</span></td>
<td>{{ issue.assignee.username|default:"-" }}</td>
<td>{{ issue.created_at|date:"Y-m-d" }}</td>
</tr>
{% empty %}
<tr><td colspan="6" class="text-center">No issues found.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}