Files
project-managment/templates/pages/accounts/user_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

26 lines
1016 B
HTML

{% extends "base.html" %}
{% block title %}Users{% endblock %}
{% block content %}
<div class="card bg-base-100 shadow-xl">
<div class="card-body">
<h2 class="card-title text-2xl mb-4">Users</h2>
<table class="table table-zebra">
<thead>
<tr><th>Username</th><th>Email</th><th>Role</th><th>Active</th><th></th></tr>
</thead>
<tbody>
{% for u in users %}
<tr>
<td>{{ u.username }}</td>
<td>{{ u.email }}</td>
<td>{{ u.get_role_display }}</td>
<td>{% if u.is_active %}<span class="badge badge-success">Yes</span>{% else %}<span class="badge badge-error">No</span>{% endif %}</td>
<td><a href="{% url 'user_edit' u.pk %}" class="btn btn-sm btn-ghost">Edit</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}