Refactored form factor

This commit is contained in:
Mike
2023-11-22 20:18:02 +02:00
parent 843b97e3b5
commit f53fcb7dc3
21 changed files with 770 additions and 515 deletions
+26
View File
@@ -0,0 +1,26 @@
<!-- dashboard.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trading Dashboard</title>
</head>
<body>
<h1>Trading Dashboard</h1>
<div>
<p><strong>Username:</strong> {{ username }}</p>
<p><strong>Account Balance:</strong> {{ account_balance }} <small>{{ account_currency }}</small></p>
</div>
<form action="/logout" method="post">
<button type="submit">Logout</button>
</form>
<form action="/start_ml_bot" method="post">
<button type="submit">Start ML Bot</button>
</form>
</body>
</html>
+28
View File
@@ -0,0 +1,28 @@
<!-- templates/index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MT5 Connector</title>
</head>
<body>
<h1>MetaTrader 5 Connector</h1>
<form action="/login" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br>
<label for="server">Server:</label>
<input type="text" id="server" name="server" required><br>
<label for="path">MT5 Path:</label>
<input type="text" id="path" name="path" required><br>
<input type="submit" value="Connect">
</form>
</body>
</html>