57 lines
2.1 KiB
HTML
57 lines
2.1 KiB
HTML
{% extends "base.html" %}
|
||
{% block title %}AO Records{% endblock %}
|
||
|
||
{% block extra_css %}
|
||
<link rel="stylesheet" href="{{ url_for('static', filename='css/display_model.css') }}">
|
||
{% endblock %}
|
||
|
||
{% block content %}
|
||
<div class="container">
|
||
<h2 style="text-align: center;">Assessing Officer(AO) Records 👨💼</h2>
|
||
<!-- Add AO Record Button -->
|
||
<div style="text-align: right; margin-bottom: 10px;">
|
||
<a href="{{ url_for('add_ao') }}" class="btn btn-add">➕ Add AO Record</a>
|
||
</div>
|
||
|
||
{% if ao_records %}
|
||
<div class="table-wrapper">
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Year</th>
|
||
<th>Gross Total Income</th>
|
||
<th>Net Taxable Income</th>
|
||
<th>Total Tax</th>
|
||
<th>Refund</th>
|
||
<th>Created Record Date</th>
|
||
<th>Actions</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for ao in ao_records %}
|
||
<tr>
|
||
<td>AY {{ ao.year }}-{{ ao.year+1 }}</td>
|
||
<td>{{ ao.gross_total_income }}</td>
|
||
<td>{{ ao.net_taxable_income }}</td>
|
||
<td>{{ ao.total_tax_payable }}</td>
|
||
<td>{{ "{:,.2f}".format(ao.refund) }}</td>
|
||
<td>{{ ao.created_at.strftime('%Y-%m-%d') }}</td>
|
||
<td>
|
||
<a href="{{ url_for('update_ao', id=ao.id) }}" class="btn btn-update">Edit</a>
|
||
|
||
<form action="{{ url_for('delete_ao', id=ao.id) }}" method="POST" style="display:inline">
|
||
<button class="btn btn-delete" onclick="return confirm('Are you sure?');">Delete</button>
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
{% else %}
|
||
<p style="text-align: center; margin-top: 20px" class="no-record">
|
||
No records found. Click the button above to add one!
|
||
</p>
|
||
{% endif %}
|
||
</div>
|
||
{% endblock %} |