You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
{% extends 'list-crud.html' %}
|
|
{% load static %}
|
|
{% load filters %}
|
|
|
|
{% block filter %}
|
|
<form id="filterForm" method="get" style="display: inline;">
|
|
<input type="hidden" name="filter" id="filterInput" value="{{ request.GET.filter|default:'active' }}">
|
|
<button type="button" class="btn btn-primary" id="activeBtn">Active</button>
|
|
<button type="button" class="btn btn-primary" id="allBtn">All</button>
|
|
</form>
|
|
{% endblock filter %}
|
|
|
|
{% block table_header %}
|
|
<th style="display: none;">Select</th>
|
|
<th>Company</th>
|
|
<th>Invoice №</th>
|
|
<th>Total amount</th>
|
|
<th>Created on</th>
|
|
<th>Paid</th>
|
|
<th>Paid on</th>
|
|
{% endblock table_header %}
|
|
|
|
{% block table_data %}
|
|
<td>{{ object.company.name }}</td>
|
|
<td>{{ object.invoice_number }}</td>
|
|
<td>{{ object.total_amount }}</td>
|
|
<td>{{ object.created_on|bg_date }}</td>
|
|
<td>{{ object.paid|yesno:"Yes,No" }}</td>
|
|
<td>{{ object.paid_on|bg_date|default:"" }}</td>
|
|
{% endblock %}
|
|
|
|
{% block buttons %}
|
|
|
|
{% endblock buttons %} |