Files
IncomeTaxSystem/templates/view_docs.html

80 lines
2.3 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2025-11-30 16:24:49 +05:30
{% block title %}Document Records{% endblock %}
2025-09-18 11:33:28 +05:30
{% block extra_css %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/documents.css') }}">
{% endblock %}
2025-09-18 11:33:28 +05:30
{% block content %}
2025-09-18 11:33:28 +05:30
<div class="main">
2025-09-18 11:33:28 +05:30
<div class="container">
2025-09-18 11:33:28 +05:30
<h2>Document Records</h2>
<!-- FILTER FORM -->
2025-09-18 11:33:28 +05:30
<form method="GET">
<label for="year">Filter by Year:</label>
<select name="year">
<option value="">All</option>
{% for y in years %}
<option value="{{ y }}">AY {{ y }}-{{ y+1 }}</option>
2025-09-18 11:33:28 +05:30
{% endfor %}
</select>
<label for="stage">Filter by Stage:</label>
<select name="stage">
<option value="">All</option>
<option value="ITR">ITR</option>
<option value="AO">AO</option>
<option value="CIT">CIT</option>
<option value="ITAT">ITAT</option>
</select>
<button type="submit">Apply</button>
</form>
<!-- DOCUMENT TABLE -->
2025-09-18 11:33:28 +05:30
<table>
<thead>
<tr>
<th>File</th>
<th>Type</th>
<th>Stage</th>
<th>Year</th>
<th>Uploaded At</th>
<th>Download</th>
<th>View</th>
</tr>
</thead>
2025-09-18 11:33:28 +05:30
<tbody>
{% for doc in documents %}
<tr>
<td>{{ doc.filename }}</td>
<td>{{ doc.filetype }}</td>
<td>{{ doc.stage }}</td>
<td>AY {{ doc.year }}-{{ doc.year +1 }}</td>
2025-09-18 11:33:28 +05:30
<td>{{ doc.uploaded_at }}</td>
<td>
<a href="{{ url_for('uploaded_file', filename=doc.filename) }}?mode=download">
Download
</a>
</td>
<td>
<a href="{{ url_for('uploaded_file', filename=doc.filename) }}?mode=view" target="_blank">
View
</a>
</td>
2025-09-18 11:33:28 +05:30
</tr>
{% endfor %}
</tbody>
</table>
2025-09-18 11:33:28 +05:30
</div>
</div>
2025-11-30 16:24:49 +05:30
{% endblock %}