2025-11-30 16:24:49 +05:30
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="en">
|
2025-12-04 17:31:12 +05:30
|
|
|
|
|
2025-11-30 16:24:49 +05:30
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<title>ITAT Records</title>
|
|
|
|
|
|
<style>
|
2025-12-04 17:31:12 +05:30
|
|
|
|
body {
|
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
|
max-width: 95%;
|
|
|
|
|
|
margin: auto;
|
|
|
|
|
|
background: white;
|
|
|
|
|
|
padding: 30px;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
|
padding: 8px 15px;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-add {
|
|
|
|
|
|
background-color: #28a745;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-update {
|
|
|
|
|
|
background-color: #007bff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-delete {
|
|
|
|
|
|
background-color: #dc3545;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-cell form {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.table-wrapper {
|
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
table {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
th,
|
|
|
|
|
|
td {
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
th {
|
|
|
|
|
|
background-color: #343a40;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tr:nth-child(even) {
|
|
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
td:first-child,
|
|
|
|
|
|
th:first-child {
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Back button styling */
|
|
|
|
|
|
.back-btn {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
padding: 10px 18px;
|
|
|
|
|
|
background: #6c757d;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
transition: background 0.3s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.back-btn:hover {
|
|
|
|
|
|
background: #5a6268;
|
|
|
|
|
|
}
|
2025-11-30 16:24:49 +05:30
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
2025-12-04 17:31:12 +05:30
|
|
|
|
|
2025-11-30 16:24:49 +05:30
|
|
|
|
<body>
|
|
|
|
|
|
<div class="container">
|
2025-12-04 17:31:12 +05:30
|
|
|
|
|
|
|
|
|
|
<!-- Back to Dashboard Button -->
|
|
|
|
|
|
<a href="{{ url_for('index') }}" class="back-btn">← Back to Dashboard</a>
|
|
|
|
|
|
|
2025-11-30 16:24:49 +05:30
|
|
|
|
<h2>ITAT Records 📄</h2>
|
|
|
|
|
|
<a href="{{ url_for('add_itat') }}" class="btn btn-add">➕ Add New Record</a>
|
|
|
|
|
|
|
|
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
{% if messages %}
|
|
|
|
|
|
{% for category, message in messages %}
|
|
|
|
|
|
<div class="alert alert-{{ category }}">{{ message }}</div>
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
{% endif %}
|
2025-11-30 16:24:49 +05:30
|
|
|
|
{% endwith %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if records %}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
<div class="table-wrapper">
|
|
|
|
|
|
<table>
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th>Year</th>
|
|
|
|
|
|
<th>MAT Tax Credit</th>
|
|
|
|
|
|
<th>Surcharge</th>
|
|
|
|
|
|
<th>Cess</th>
|
|
|
|
|
|
<th>Total Credit</th>
|
|
|
|
|
|
<th>Actions</th>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
{% for record in records %}
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>{{ record.year }}</td>
|
|
|
|
|
|
<td>{{ "{:,.2f}".format(record.mat_tax_credit) }}</td>
|
|
|
|
|
|
<td>{{ "{:,.2f}".format(record.surcharge) }}</td>
|
|
|
|
|
|
<td>{{ "{:,.2f}".format(record.cess) }}</td>
|
|
|
|
|
|
<td>{{ "{:,.2f}".format(record.total_credit) }}</td>
|
|
|
|
|
|
<td class="action-cell">
|
|
|
|
|
|
<a href="{{ url_for('update_itat', id=record.id) }}" class="btn btn-update">Edit</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form action="{{ url_for('delete_itat', id=record.id) }}" method="post"
|
|
|
|
|
|
onsubmit="return confirm('Are you sure you want to delete this record?');">
|
|
|
|
|
|
<button type="submit" class="btn btn-delete">Delete</button>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
2025-11-30 16:24:49 +05:30
|
|
|
|
{% else %}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
<p style="text-align: center; margin-top: 20px;">No ITAT records found. Click the button above to add one!</p>
|
2025-11-30 16:24:49 +05:30
|
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</body>
|
2025-12-04 17:31:12 +05:30
|
|
|
|
|
|
|
|
|
|
</html>
|