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