2025-12-29 15:22:15 +05:30
|
|
|
{% extends "base.html" %}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
2025-12-29 15:22:15 +05:30
|
|
|
{% block title %}Update ITR Record{% endblock %}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
2025-12-29 15:22:15 +05:30
|
|
|
{% block extra_css %}
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/add_itr.css') }}">
|
|
|
|
|
{% endblock %}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
2025-12-29 15:22:15 +05:30
|
|
|
{% block content %}
|
|
|
|
|
<div class="main">
|
2025-09-18 11:33:28 +05:30
|
|
|
<div class="container">
|
2025-12-29 15:22:15 +05:30
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
<h2>Update ITR Record for Year {{ record.year }}</h2>
|
2025-12-29 15:22:15 +05:30
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
<form method="POST" action="{{ url_for('update_itr', id=record.id) }}">
|
2025-12-29 15:22:15 +05:30
|
|
|
|
|
|
|
|
<label for="year">Year:</label>
|
|
|
|
|
<input type="text" id="year" name="year" value="{{ record.year }}" readonly class="readonly-field">
|
|
|
|
|
|
|
|
|
|
{% for field in record.keys() if field not in ['id', 'year'] %}
|
|
|
|
|
<label for="{{ field }}">{{ field.replace("_", " ").title() }}:</label>
|
|
|
|
|
<input type="number" id="{{ field }}" name="{{ field }}" step="any" value="{{ record[field] }}" required>
|
2025-09-18 11:33:28 +05:30
|
|
|
{% endfor %}
|
2025-12-29 15:22:15 +05:30
|
|
|
|
|
|
|
|
<!-- {% for field in record.keys() if field != 'id' %}-->
|
|
|
|
|
<!-- <label for="{{ field }}">{{ field.replace("_", " ").title() }}:</label>-->
|
|
|
|
|
<!-- <input -->
|
|
|
|
|
<!-- type="number" -->
|
|
|
|
|
<!-- id="{{ field }}" -->
|
|
|
|
|
<!-- name="{{ field }}" -->
|
|
|
|
|
<!-- step="any" -->
|
|
|
|
|
<!-- value="{{ record[field] }}" -->
|
|
|
|
|
<!-- required>-->
|
|
|
|
|
<!-- {% endfor %}-->
|
|
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
<button type="submit">Update Record</button>
|
2025-12-29 15:22:15 +05:30
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
</form>
|
2025-12-29 15:22:15 +05:30
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
</div>
|
2025-12-29 15:22:15 +05:30
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
2025-12-04 17:31:12 +05:30
|
|
|
|
2025-12-29 15:22:15 +05:30
|
|
|
{% block extra_js %}
|
|
|
|
|
<script src="{{ url_for('static', filename='js/toggle.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/cit_calc.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/year_dropdown.js') }}"></script>
|
|
|
|
|
{% endblock %}
|