2025-11-30 16:24:49 +05:30
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
2025-12-03 10:49:31 +05:30
|
|
|
|
2025-11-30 16:24:49 +05:30
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>Update CIT Record</title>
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
|
|
|
|
|
<style>
|
2025-12-03 10:49:31 +05:30
|
|
|
body {
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
max-width: 700px;
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type="number"] {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button[type="submit"] {
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
padding: 12px 20px;
|
|
|
|
|
background-color: #007bff;
|
|
|
|
|
color: white;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button[type="submit"]:hover {
|
|
|
|
|
background-color: #0056b3;
|
|
|
|
|
}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
|
|
|
|
/* 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-03 10:49:31 +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>Update CIT Record for Year {{ record.year }}</h2>
|
|
|
|
|
<form method="POST" action="{{ url_for('update_cit', id=record.id) }}">
|
|
|
|
|
{% for field in record.keys() if field != 'id' %}
|
2025-12-03 10:49:31 +05:30
|
|
|
<label>{{ field.replace("_", " ").title() }}:</label>
|
|
|
|
|
<input type="number" name="{{ field }}" step="0.01" value="{{ record[field] }}" required>
|
2025-11-30 16:24:49 +05:30
|
|
|
{% endfor %}
|
|
|
|
|
<button type="submit">Update Record</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2025-12-03 10:49:31 +05:30
|
|
|
|
|
|
|
|
</html>
|