2025-12-29 15:22:15 +05:30
|
|
|
{% extends "base.html" %}
|
|
|
|
|
{% block title %}Document Records{% endblock %}
|
|
|
|
|
{% block extra_css %}
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/documents.css') }}">
|
|
|
|
|
{% endblock %}
|
|
|
|
|
{% block content %}
|
2025-09-18 11:33:28 +05:30
|
|
|
|
2026-01-29 18:19:49 +05:30
|
|
|
<div class="container">
|
|
|
|
|
<h2>Document Records</h2>
|
|
|
|
|
<!-- FILTER FORM -->
|
|
|
|
|
<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>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</select>
|
2025-12-04 17:31:12 +05:30
|
|
|
|
2026-01-29 18:19:49 +05:30
|
|
|
<label for="stage">Filter by Stage:</label>
|
|
|
|
|
<select name="stage">
|
|
|
|
|
<option value="">All</option>
|
|
|
|
|
{% set stages = ['ITR','AO','CIT','ITAT'] %}
|
|
|
|
|
{% for stage in stages %}
|
|
|
|
|
<option value="{{stage}}">{{stage}}</option>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</select>
|
|
|
|
|
<button type="submit">Apply</button>
|
|
|
|
|
</form>
|
2026-02-06 15:11:58 +05:30
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
|
|
|
{% for category, message in messages %}
|
|
|
|
|
<div class="alert alert-{{ category }}">{{ message }}</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endwith %}
|
2026-01-29 18:19:49 +05:30
|
|
|
<!-- DOCUMENT TABLE -->
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
<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
|
|
|
|
2026-01-29 18:19:49 +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>
|
|
|
|
|
<td>{{ doc.uploaded_at }}</td>
|
2025-09-18 11:33:28 +05:30
|
|
|
|
2026-01-29 18:19:49 +05:30
|
|
|
<td> <a href="{{ url_for('uploaded_file', filename=doc.filename) }}?mode=download">Download</a>
|
|
|
|
|
</td>
|
2025-12-29 15:22:15 +05:30
|
|
|
|
2026-01-29 18:19:49 +05:30
|
|
|
<td><a href="{{ url_for('uploaded_file', filename=doc.filename) }}?mode=view"
|
|
|
|
|
target="_blank">View</a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2025-09-18 11:33:28 +05:30
|
|
|
</div>
|
2025-12-29 15:22:15 +05:30
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|