mt5-manager/templates/index.html

37 lines
881 B
HTML
Raw Permalink Normal View History

2025-10-10 10:16:59 +03:00
<!DOCTYPE html>
<html>
2025-10-14 14:16:34 +03:00
2025-10-10 10:16:59 +03:00
<head>
<title>MT5 Manager</title>
2025-10-14 14:16:34 +03:00
<link rel="stylesheet" href="/static/styles.css">
2025-10-10 10:16:59 +03:00
</head>
2025-10-14 14:16:34 +03:00
2025-10-10 10:16:59 +03:00
<body>
<h1>MT5 Manager</h1>
<div class="instances">
2025-10-14 14:16:34 +03:00
<h2>Instances</h2>
2025-10-10 10:16:59 +03:00
<ul id="instanceList">
{% for name, data in instances.items() %}
2025-10-14 14:16:34 +03:00
<li class="{{ data.status }}">
<strong>{{ name }}</strong>
{% if data.pid > 0 %}
(PID: {{ data.pid }})
<button onclick="stopInstance('{{ name }}')">Stop</button>
{% else %}
<button onclick="startInstance('{{ name }}')">Start</button>
{% endif %}
</li>
2025-10-10 10:16:59 +03:00
{% endfor %}
</ul>
</div>
2025-10-14 14:16:34 +03:00
<!--
<hr/>
<div class="controls">
<input type="text" id="instanceName" placeholder="New instance name">
<button onclick="addInstance('{{ name }}')">Add</button>
</div>
-->
2025-10-10 10:16:59 +03:00
<script src="/static/script.js"></script>
</body>
2025-10-14 14:16:34 +03:00
</html>