Initial commit - EcoCharge backend API + admin

This commit is contained in:
Safouane Bazzi
2026-03-09 14:11:28 +01:00
commit 6b025aeacb
6 changed files with 612 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html>
<head>
<title>Admin EcoCharge</title>
<style>
body{
font-family: Arial;
background:#f5f7fb;
padding:40px;
}
.card{
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
max-width:500px;
}
h2{
margin-top:0;
}
label{
display:block;
margin-top:15px;
}
input{
width:100%;
padding:8px;
margin-top:5px;
}
button{
margin-top:20px;
padding:10px;
background:#2563eb;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
}
a{
display:block;
margin-top:20px;
}
</style>
</head>
<body>
<div class="card">
<h2>Administration EcoCharge</h2>
<form method="POST">
<label>Seuil batterie minimum</label>
<input type="number" step="0.1" name="min_battery" value="{{ settings.min_battery }}">
<label>Température max batterie</label>
<input type="number" step="0.1" name="max_temp" value="{{ settings.max_temp }}">
<label>Puissance solaire minimum</label>
<input type="number" step="0.1" name="min_power" value="{{ settings.min_power }}">
<button type="submit">Sauvegarder</button>
</form>
<a href="/admin/logout">Se déconnecter</a>
</div>
</body>
</html>