40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Update AO Record{% endblock %}
|
|
|
|
{% block extra_css %}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/add_ao.css') }}">
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="main">
|
|
<div class="container">
|
|
|
|
<h2>Update AO Record for Year {{ record.year }}</h2>
|
|
|
|
<form method="POST" action="{{ url_for('update_ao', id=record.id) }}">
|
|
|
|
<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', 'remarks'] %}
|
|
<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>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% 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 %} |