54 lines
2.9 KiB
HTML
54 lines
2.9 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n static %}
|
|
|
|
{% block title %}{{ _("Payments") }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="row mt-4">
|
|
<div>
|
|
<a href="{% url 'payment_create' %}" class="btn btn-sm btn-success ">{% trans "Add Payment" %}</a>
|
|
<h3 class="text-center">{% trans "Payments" %}</h3>
|
|
</div>
|
|
<div class="mx-n4 px-4 mx-lg-n6 px-lg-6 bg-body-emphasis pt-7 border-y">
|
|
|
|
<div class="table-responsive mx-n1 px-1 scrollbar">
|
|
<table class="table fs-9 mb-0 border-top border-translucent">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Payment Number" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Invoice" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Timestamp" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Description" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Actions" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="list">
|
|
{% for journal in journals %}
|
|
<tr class="hover-actions-trigger btn-reveal-trigger position-static">
|
|
<td class="align-middle product white-space-nowrap py-0">{{ forloop.counter }}</td>
|
|
<td class="align-middle product white-space-nowrap py-0">{{ journal.je_number }}</td>
|
|
{% if journal.ledger.invoicemodel %}
|
|
<td class="align-middle product white-space-nowrap py-0"><a href="{% url 'invoice_detail' journal.ledger.invoicemodel.pk %}">{{ journal.ledger.invoicemodel }}</a></td>
|
|
{% else %}
|
|
<td class="align-middle product white-space-nowrap py-0"></td>
|
|
{% endif %}
|
|
<td class="align-middle product white-space-nowrap py-0">{{ journal.timestamp }}</td>
|
|
<td class="align-middle product white-space-nowrap py-0">{{ journal.description }}</td>
|
|
<td class="text-center">
|
|
<a href="{% url 'payment_details' journal.pk %}" class="btn btn-sm btn-success">{% trans "View Tranactions" %}</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="6" class="text-center">{% trans "No Payments Found" %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex justify-content-center">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |