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-21 16:08:01 +03:00 | | | <!-- Bootstrap CSS -->
|
| | | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
| | | <!-- Toastr CSS -->
|
| | | <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" rel="stylesheet">
|
| | | <!-- jQuery -->
|
| | | <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
| | | <!-- Bootstrap JS -->
|
| | | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
| | | <!-- Toastr JS -->
|
| | | <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
|
2025-10-24 02:13:35 +03:00 | | | <!-- FontAwesome JS -->
|
| | | <script src="https://kit.fontawesome.com/6ae7a57c33.js" crossorigin="anonymous"></script>
|
| | | <!-- Custom CSS-->
|
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-24 15:36:01 +03:00 | | | <body class="bg-body-tertiary">
|
2025-10-24 02:13:35 +03:00 | | | <header class="p-3 text-bg-dark">
|
| | | <div class="container">
|
| | | <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
|
| | | <a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none">
|
| | | <img src="/static/img/MetaQuotes-Demo.ico" width="48" height="48">
|
| | | </a>
|
| | | <ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
|
| | | <li><a href="/" class="nav-link px-4 text-white fw-semibold">Terminals</a></li>
|
| | | <li><a href="#" class="nav-link px-4 text-white">Configuration</a></li>
|
| | | <li><a href="#" class="nav-link px-4 text-white">About</a></li>
|
| | | </ul>
|
2025-10-31 21:45:09 +03:00 | | | <!--
|
2025-10-24 02:13:35 +03:00 | | | <div class="text-end"> <button type="button" class="btn btn-outline-light me-2">Login</button> <button
|
| | | type="button" class="btn btn-warning">Sign-up</button> </div>
|
2025-10-31 21:45:09 +03:00 | | | -->
|
2025-10-24 02:13:35 +03:00 | | | </div>
|
| | | </div>
|
| | | </header>
|
| | | <main>
|
| | | <div class="container mt-4">
|
| | | <h1 class="mb-4">MT5 Manager</h1>
|
| | | <div id="terminal-list" class="row">
|
2025-10-30 09:59:38 +03:00 | | | {% for folder, terminal in instances.items() %}
|
| | | <div class="col-md-12 col-xl-6 mb-2 pe-0">
|
| | | <div class="card terminal-card loading-card" data-folder="{{ folder }}">
|
2025-10-24 02:13:35 +03:00 | | | <div class="card-header px-2 d-flex flex-wrap align-items-center justify-content-start">
|
2025-10-30 09:59:38 +03:00 | | | <div class="server me-2 server-{{ terminal.server }}"></div>
|
2025-10-24 15:36:01 +03:00 | | | <div class="name fw-semibold me-auto">
|
2025-10-24 02:13:35 +03:00 | | | <small
|
2025-10-30 09:59:38 +03:00 | | | class="d-inline-flex px-2 py-1 text-primary-emphasis bg-primary-subtle border border-primary-subtle rounded-2">
|
| | | <span class="account">...0000</span></small>
|
| | | <span class="name">{{ terminal.name }}</span>
|
2025-10-24 15:36:01 +03:00 | | |
|
2025-10-24 02:13:35 +03:00 | | | </div>
|
2025-10-24 15:36:01 +03:00 | | | <div class="status text-secondary me-2">
|
2025-10-30 22:41:27 +03:00 | | | <small class="time"></small>
|
2025-10-24 02:13:35 +03:00 | | | <i class="fa-solid fa-circle-check"></i>
|
2025-10-24 15:36:01 +03:00 | | | <small class="description">Wait ...</small>
|
2025-10-24 02:13:35 +03:00 | | | </div>
|
2025-10-24 15:36:01 +03:00 | | | <div class="text-end tc-controls">
|
2025-10-24 02:13:35 +03:00 | | |
|
2025-10-30 09:59:38 +03:00 | | | <button type="button" class="btn btn-default btn-start border-0" data-folder="{{ folder }}"
|
| | | onclick="startTerminal('{{ folder }}')"><i class="fa-solid fa-play"></i></button>
|
| | | <button type="button" class="btn btn-default btn-stop border-0" data-folder="{{ folder }}"
|
| | | onclick="stopTerminal('{{ folder }}')"><i class="fa-solid fa-pause"></i></button>
|
2025-10-24 02:13:35 +03:00 | | |
|
| | | </div>
|
| | | </div>
|
| | | <!-- Шаблон загрузки -->
|
| | | <div class="card-body loading-content">
|
| | | <button class="btn btn-secondary" disabled>Загрузка…</button>
|
| | | </div>
|
| | |
|
| | | <div class="loaded-content">
|
| | | <!-- Шаблон с данными (скрыт по умолчанию) -->
|
| | | <div class="card-body row">
|
2025-10-30 09:59:38 +03:00 | | | <div class="col-md-3 card-money"><span class="title">Balance:</span><span class="balance">—</span></div>
|
2025-11-05 22:14:19 +03:00 | | | <div class="col-md-3 card-money"><span class="title">Profit:</span><span class="profit">—</span></div>
|
| | | <div class="col-md-3 card-money"><span class="title">Eqiuty:</span><span class="equity">—</span><span
|
2025-10-30 09:59:38 +03:00 | | | class="profit-pct">—%</span></div>
|
2025-11-05 22:14:19 +03:00 | | | <div class="col-md-3 card-money"><span class="title">Margin:</span><span class="margin">—</span></div>
|
2025-10-30 22:41:27 +03:00 | | |
|
2025-10-24 02:13:35 +03:00 | | | </div>
|
| | | </div>
|
2025-10-21 16:08:01 +03:00 | | | </div>
|
| | | </div>
|
2025-10-24 02:13:35 +03:00 | | | {% endfor %}
|
2025-10-21 16:08:01 +03:00 | | | </div>
|
| | | </div>
|
2025-10-24 02:13:35 +03:00 | | | </main>
|
2025-10-21 16:08:01 +03:00 | | |
|
| | | <script>
|
| | | const terminals = {{ instances | list | tojson }};
|
| | | </script>
|
2025-10-10 10:16:59 +03:00 | | | <script src="/static/script.js"></script>
|
| | | </body>
|
2025-10-14 14:16:34 +03:00 | | |
|
| | | </html>
|