- Add custom border, background, and spacing utilities to base template - Enhance message notification styling and layout - Update delete modal button appearance and behavior - Refine comment card component with Tailwind classes and responsive behavior - Adjust sidebar responsiveness for mobile view
45 lines
2.3 KiB
HTML
45 lines
2.3 KiB
HTML
{% extends "base_authenticated.html" %}
|
|
{% block title %}Payments{% endblock %}
|
|
{% block content_inner %}
|
|
<div class="flex items-center justify-between mb-6">
|
|
<div>
|
|
<h1 class="text-2xl font-bold text-primary">Payments</h1>
|
|
<p class="text-tertiary mt-1">All invoice payments.</p>
|
|
</div>
|
|
<a href="{% url 'payment_create' %}" class="px-3 py-1.5 rounded-lg text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors">
|
|
<svg class="w-4 h-4 mr-1 inline" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/></svg>
|
|
New Payment
|
|
</a>
|
|
</div>
|
|
<div class="card-surface overflow-hidden">
|
|
<div class="overflow-x-auto">
|
|
<table class="w-full text-sm">
|
|
<thead>
|
|
<tr class="text-xs font-semibold text-muted uppercase tracking-wider bg-hover">
|
|
<th class="px-4 py-3 text-left">Invoice</th>
|
|
<th class="px-4 py-3 text-left">Date</th>
|
|
<th class="px-4 py-3 text-left">Method</th>
|
|
<th class="px-4 py-3 text-left">Amount</th>
|
|
<th class="px-4 py-3 text-left">Reference</th>
|
|
<th class="px-4 py-3 text-left"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for payment in payments %}
|
|
<tr class="hover:bg-hover transition-colors border-t border-subtle">
|
|
<td class="px-4 py-3 text-sm font-medium text-primary">#{{ payment.invoice.id }}</td>
|
|
<td class="px-4 py-3 text-secondary">{{ payment.paid_at|date:"M d, Y H:i" }}</td>
|
|
<td class="px-4 py-3 text-secondary">{{ payment.method }}</td>
|
|
<td class="px-4 py-3 text-sm font-semibold text-primary">${{ payment.amount }}</td>
|
|
<td class="px-4 py-3 text-tertiary">{{ payment.reference|default:"-" }}</td>
|
|
<td class="px-4 py-3"><a href="{% url 'payment_delete' payment.pk %}" class="text-xs text-red-500 hover:text-red-700">Delete</a></td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr><td colspan="6" class="text-center py-12 text-tertiary">No payments recorded.</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|