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.0 KiB
HTML
28 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Team Payments{% endblock %}
|
|
{% block content %}
|
|
<div class="flex justify-between items-center mb-4">
|
|
<h1 class="text-3xl font-bold">Team Payments</h1>
|
|
{% if user.is_admin %}
|
|
<a href="{% url 'team_payment_create' %}" class="btn btn-primary">New Payment</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="overflow-x-auto">
|
|
<table class="table table-zebra">
|
|
<thead><tr><th>Member</th><th>Period</th><th>Amount</th><th>Paid At</th></tr></thead>
|
|
<tbody>
|
|
{% for payment in payments %}
|
|
<tr>
|
|
<td>{{ payment.member.username }}</td>
|
|
<td>{{ payment.period|date:"Y-m" }}</td>
|
|
<td>${{ payment.amount }}</td>
|
|
<td>{{ payment.paid_at|date:"Y-m-d"|default:"-" }}</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr><td colspan="4" class="text-center">No payments recorded.</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|