changes of ITAT from new desing and sql insert update proce chnage code of v2
This commit is contained in:
@@ -17,21 +17,13 @@
|
||||
<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'] %}
|
||||
{% for field in record.keys() if field not in ['id', 'year', 'remarks'] %}
|
||||
<label for="{{ field }}">{{ field.replace("_", " ").title() }}:</label>
|
||||
<input type="number" id="{{ field }}" name="{{ field }}" step="any" value="{{ record[field] }}" required>
|
||||
{% endfor %}
|
||||
|
||||
<!-- {% 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 %}-->
|
||||
<label for="Remarks">Remarks:</label>
|
||||
<input type="text" id="Remarks" name="Remarks" value="{{ record.remarks}}">
|
||||
|
||||
<button type="submit">Update Record</button>
|
||||
|
||||
@@ -43,6 +35,6 @@
|
||||
|
||||
{% 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/cit_calc.js') }}"></script> -->
|
||||
<script src="{{ url_for('static', filename='js/year_dropdown.js') }}"></script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user