Spaces:
Paused
Paused
Create templates/index.html
Browse files- templates/index.html +29 -0
templates/index.html
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<title>Minecraft Backup UI</title>
|
| 7 |
+
<style>
|
| 8 |
+
body { font-family: Arial, sans-serif; padding: 20px; max-width: 600px; margin: auto; }
|
| 9 |
+
input, button { padding: 10px; margin-top: 10px; width: 100%; font-size: 1em; }
|
| 10 |
+
.status { margin-top: 20px; background: #f0f0f0; padding: 10px; border-radius: 5px; }
|
| 11 |
+
</style>
|
| 12 |
+
</head>
|
| 13 |
+
<body>
|
| 14 |
+
<h2>Minecraft Backup Controller</h2>
|
| 15 |
+
<form method="post">
|
| 16 |
+
<label for="interval">Set Interval (minutes):</label>
|
| 17 |
+
<input type="number" id="interval" name="interval" value="{{ interval }}" min="1">
|
| 18 |
+
<button type="submit">Set Timer</button>
|
| 19 |
+
</form>
|
| 20 |
+
<form method="post">
|
| 21 |
+
<input type="hidden" name="manual_run" value="1">
|
| 22 |
+
<button type="submit">Run Backup Now</button>
|
| 23 |
+
</form>
|
| 24 |
+
<div class="status">
|
| 25 |
+
<p><strong>Last Run:</strong> {{ last_run }}</p>
|
| 26 |
+
<p><strong>Status:</strong> {{ result }}</p>
|
| 27 |
+
</div>
|
| 28 |
+
</body>
|
| 29 |
+
</html>
|