51 lines
1.5 KiB
HTML
51 lines
1.5 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="icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
|
<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">
|
|
<table id="conditionTable">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="{{ data.headers | length }}"><h2>{{ data.title }}</h2></td>
|
|
</tr>
|
|
{% if data.items %}
|
|
<tr>
|
|
{% for header in data.headers %}
|
|
<th>{{ header }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<th class="nodata">No Data</th>
|
|
</tr>
|
|
{% endif %}
|
|
</thead>
|
|
<tbody>
|
|
{% for item in data["items"] %}
|
|
<tr onclick="onOpenDialog('{{ data.prefix }}/{{ item.id }}')">
|
|
<td>{{ item }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="{{ data.headers | length }}" style="text-align: right;"> <!-- Adjust colspan as per your total columns -->
|
|
<button onclick="onOpenDialog('{{ data.prefix }}/create')">Add Item</button>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |