Release 1.0.0
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Maintain {{ csv }}</title>
|
||||
<style>
|
||||
table, th, td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
padding: 5px;
|
||||
}
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Maintain {{ csv }}</h2>
|
||||
|
||||
<form method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
{% for col in header %}
|
||||
<th>{{ col }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
|
||||
{% for row_index in range(rows|length + 1) %}
|
||||
<tr>
|
||||
{% for col_index in range(header|length) %}
|
||||
<td>
|
||||
<input type="text"
|
||||
name="row-{{ row_index }}-col-{{ col_index }}"
|
||||
value="{{ rows[row_index][col_index] if row_index < rows|length else '' }}">
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<button type="submit">Save Changes</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user