Create templates/index.html
Browse files- templates/index.html +117 -0
templates/index.html
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="fr">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Générateur de comptes automatique</title>
|
7 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
8 |
+
<style>
|
9 |
+
body { background-color: #f5f5f5; }
|
10 |
+
.card { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
|
11 |
+
.progress { height: 25px; }
|
12 |
+
#status-display { height: 200px; overflow-y: auto; }
|
13 |
+
</style>
|
14 |
+
<script src="{{ url_for('serve_js') }}"></script>
|
15 |
+
</head>
|
16 |
+
<body>
|
17 |
+
<div class="container mt-5">
|
18 |
+
<div class="row">
|
19 |
+
<div class="col-md-12 mb-4">
|
20 |
+
<div class="card">
|
21 |
+
<div class="card-header bg-primary text-white">
|
22 |
+
<h3 class="card-title mb-0">Générateur de comptes - Startup Côte d'Ivoire</h3>
|
23 |
+
</div>
|
24 |
+
<div class="card-body">
|
25 |
+
<form id="generator-form">
|
26 |
+
<div class="row mb-3">
|
27 |
+
<div class="col-md-6">
|
28 |
+
<label for="num_accounts" class="form-label">Nombre de comptes à créer</label>
|
29 |
+
<input type="number" class="form-control" id="num_accounts" name="num_accounts" min="1" max="1000" value="10">
|
30 |
+
</div>
|
31 |
+
<div class="col-md-6">
|
32 |
+
<label for="startup_ratio" class="form-label">Ratio de représentants de startup (%)</label>
|
33 |
+
<input type="number" class="form-control" id="startup_ratio" name="startup_ratio" min="0" max="100" value="30">
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
<div class="d-grid gap-2 d-md-flex justify-content-md-center">
|
37 |
+
<button type="submit" id="start-btn" class="btn btn-success btn-lg">
|
38 |
+
<i class="fas fa-play"></i> Démarrer
|
39 |
+
</button>
|
40 |
+
<button type="button" id="stop-btn" class="btn btn-danger btn-lg">
|
41 |
+
<i class="fas fa-stop"></i> Arrêter
|
42 |
+
</button>
|
43 |
+
<a href="/accounts" class="btn btn-primary btn-lg">
|
44 |
+
<i class="fas fa-list"></i> Voir les comptes
|
45 |
+
</a>
|
46 |
+
</div>
|
47 |
+
</form>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
|
52 |
+
<div class="col-md-12">
|
53 |
+
<div class="card">
|
54 |
+
<div class="card-header bg-info text-white">
|
55 |
+
<h4 class="card-title mb-0">Progression</h4>
|
56 |
+
</div>
|
57 |
+
<div class="card-body">
|
58 |
+
<div class="progress mb-3">
|
59 |
+
<div id="progress-bar" class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%">0%</div>
|
60 |
+
</div>
|
61 |
+
|
62 |
+
<div class="row text-center mb-3">
|
63 |
+
<div class="col">
|
64 |
+
<div class="card bg-light">
|
65 |
+
<div class="card-body">
|
66 |
+
<h5>Total</h5>
|
67 |
+
<h3 id="total-count">0</h3>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<div class="col">
|
72 |
+
<div class="card bg-success text-white">
|
73 |
+
<div class="card-body">
|
74 |
+
<h5>Réussis</h5>
|
75 |
+
<h3 id="success-count">0</h3>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
<div class="col">
|
80 |
+
<div class="card bg-danger text-white">
|
81 |
+
<div class="card-body">
|
82 |
+
<h5>Échecs</h5>
|
83 |
+
<h3 id="failed-count">0</h3>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
|
89 |
+
<div class="card mb-3">
|
90 |
+
<div class="card-header">
|
91 |
+
<h5>Dernier statut</h5>
|
92 |
+
</div>
|
93 |
+
<div class="card-body">
|
94 |
+
<p id="last-status">-</p>
|
95 |
+
<p>Dernier compte créé: <span id="last-username" class="text-primary fw-bold">-</span></p>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
|
99 |
+
<div class="row">
|
100 |
+
<div class="col-md-6">
|
101 |
+
<p>Heure de début: <span id="start-time">-</span></p>
|
102 |
+
</div>
|
103 |
+
<div class="col-md-6 text-end">
|
104 |
+
<p>Heure de fin: <span id="end-time">-</span></p>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
|
113 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
114 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script>
|
115 |
+
|
116 |
+
</body>
|
117 |
+
</html>
|