57 lines
1.6 KiB
HTML
57 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">
|
|
<dialog>
|
|
<iframe frameborder="0"></iframe>
|
|
</dialog>
|
|
<table id="conditionTable">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="5"><h2>Conditions</h2></td>
|
|
</tr>
|
|
{% if data.conditions %}
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Symbol</th>
|
|
<th>Condition</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<th class="nodata">No Data</th>
|
|
</tr>
|
|
{% endif %}
|
|
</thead>
|
|
<tbody>
|
|
{% for item in data.conditions %}
|
|
<tr onclick="document.querySelector('dialog iframe').contentWindow.location='/conditions/{{ item.id }}'">
|
|
|
|
{% set order = ["id", "symbol", "condition", "value"] %}
|
|
{% for key in order %}
|
|
<td>{{ item[key] }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="5" style="text-align: right;"> <!-- Adjust colspan as per your total columns -->
|
|
<button onclick="document.querySelector('dialog iframe').contentWindow.location='/conditions/create'">Add Item</button>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |