74 lines
4.3 KiB
HTML
74 lines
4.3 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n static %}
|
|
|
|
{% block title %}{{ _("Invoices") }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<h3 class="text-center">{% trans "Invoices" %}</h3>
|
|
<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 class="sort white-space-nowrap align-middle" scope="col">{% trans "Invoice Number" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Customer" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Status" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Status Date" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Created" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Actions" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="list">
|
|
{% for invoice in invoices %}
|
|
<tr class="hover-actions-trigger btn-reveal-trigger position-static">
|
|
<td class="align-middle product white-space-nowrap py-0">{{ invoice.invoice_number }}</td>
|
|
<td class="align-middle product white-space-nowrap">{{ invoice.customer }}</td>
|
|
<td class="align-middle product white-space-nowrap text-success">
|
|
{% if invoice.invoice_status == "approved" %}
|
|
<span class="badge badge-phoenix badge-phoenix-success">{{ invoice.invoice_status }}</span>
|
|
{% elif invoice.invoice_status == "canceled" %}
|
|
<span class="badge badge-phoenix badge-phoenix-danger">{{ invoice.invoice_status }}</span>
|
|
{% elif invoice.invoice_status == "draft" %}
|
|
<span class="badge badge-phoenix badge-phoenix-warning">{{ invoice.invoice_status }}</span>
|
|
{% elif invoice.invoice_status == "in_review" %}
|
|
<span class="badge badge-phoenix badge-phoenix-info">{{ invoice.invoice_status }}</span>
|
|
{% elif invoice.invoice_status == "paid" %}
|
|
<span class="badge badge-phoenix badge-phoenix-success">{{ invoice.invoice_status }}</span>
|
|
{% endif %}
|
|
</td>
|
|
<td class="align-middle product white-space-nowrap">
|
|
{% if invoice.invoice_status == "in_review" %}
|
|
{{ invoice.date_in_review }}
|
|
{% elif invoice.invoice_status == "approved" %}
|
|
{{ invoice.date_approved }}
|
|
{% elif invoice.invoice_status == "canceled" %}
|
|
{{ invoice.date_canceled }}
|
|
{% elif invoice.invoice_status == "draft" %}
|
|
{{ invoice.date_draft }}
|
|
{% elif invoice.invoice_status == "paid" %}
|
|
{{ invoice.date_paid }}
|
|
{% endif %}
|
|
</td>
|
|
<td class="align-middle product white-space-nowrap">{{ invoice.created }}</td>
|
|
<td class="text-center">
|
|
<a href="{% url 'invoice_detail' invoice.pk %}"
|
|
class="btn btn-sm btn-success">
|
|
{% trans "View" %}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="6" class="text-center">{% trans "No Invoice Found" %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex justify-content-center">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |