54 lines
1.6 KiB
HTML
54 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Trading Zone Website</title>
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/styles.css') }}">
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/main.js') }}" ></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<h1>Conditions</h1>
|
|
<dialog id="conditionDialog">
|
|
<form method="POST" action="/conditions">
|
|
<label for="itemName">Name:</label><br>
|
|
<input type="text" id="itemName" name="itemName"><br>
|
|
<label for="itemDescription">Description:</label><br>
|
|
<textarea id="itemDescription" name="itemDescription"></textarea><br><br>
|
|
|
|
<button value="cancel" formmethod="dialog">Cancel</button>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
</dialog>
|
|
<table id="conditionTable">
|
|
<thead>
|
|
<tr>
|
|
{% for key, items in data.conditions.model.items() %}
|
|
<th>{{ key }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in data.conditions.data %}
|
|
<tr>
|
|
{% for key, value in item.items() %}
|
|
<td>{{ value }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="3" style="text-align: right;"> <!-- Adjust colspan as per your total columns -->
|
|
<button onclick="openModal()">Add Item</button>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |