Files
project-managment/templates/pages/finance/expense_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

27 lines
1019 B
HTML

{% extends "base.html" %}
{% block title %}Expenses{% endblock %}
{% block content %}
<div class="flex justify-between items-center mb-4">
<h1 class="text-3xl font-bold">Expenses</h1>
<a href="{% url 'expense_create' %}" class="btn btn-primary">New Expense</a>
</div>
<div class="overflow-x-auto">
<table class="table table-zebra">
<thead><tr><th>Category</th><th>Amount</th><th>Project</th><th>Raised By</th><th>Date</th></tr></thead>
<tbody>
{% for expense in expenses %}
<tr>
<td>{{ expense.category }}</td>
<td>${{ expense.amount }}</td>
<td>{{ expense.project.name }}</td>
<td>{{ expense.raised_by.username }}</td>
<td>{{ expense.date|date:"Y-m-d" }}</td>
</tr>
{% empty %}
<tr><td colspan="5" class="text-center">No expenses.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}