Spaces:
Sleeping
Sleeping
Commit
·
cdc2048
1
Parent(s):
2546160
Updated UI
Browse files- templates/index.html +79 -43
- templates/plot.html +44 -30
templates/index.html
CHANGED
|
@@ -1,60 +1,96 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html>
|
| 3 |
<head>
|
| 4 |
-
<
|
|
|
|
|
|
|
| 5 |
<style>
|
| 6 |
body {
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
background: #f8f9fa;
|
| 10 |
-
padding: 40px;
|
| 11 |
}
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
display: inline-block;
|
| 17 |
}
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
-
|
| 22 |
background-color: #0078d7;
|
| 23 |
-
color: white;
|
| 24 |
-
padding: 10px 20px;
|
| 25 |
border: none;
|
| 26 |
-
border-radius: 5px;
|
| 27 |
}
|
| 28 |
-
.
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
</style>
|
| 31 |
</head>
|
| 32 |
<body>
|
| 33 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
<h3>Step 2: Upload New Test Data (.xlsx)</h3>
|
| 51 |
-
<input type="file" name="test_file" accept=".xlsx" required><br>
|
| 52 |
-
<button type="submit">Upload Test Data</button>
|
| 53 |
-
</form>
|
| 54 |
-
<br>
|
| 55 |
-
<form action="/reset_golden">
|
| 56 |
-
<button style="background-color:#d9534f;">Reset Golden Data</button>
|
| 57 |
-
</form>
|
| 58 |
-
{% endif %}
|
| 59 |
</body>
|
| 60 |
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>IPM Golden vs Test Data Visualizer</title>
|
| 6 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
+
background: #f6f8fa;
|
| 10 |
+
font-family: "Segoe UI", Arial, sans-serif;
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
+
.main-container {
|
| 13 |
+
max-width: 600px;
|
| 14 |
+
margin: 70px auto;
|
| 15 |
+
text-align: center;
|
|
|
|
| 16 |
}
|
| 17 |
+
.card {
|
| 18 |
+
border: none;
|
| 19 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
|
| 20 |
+
border-radius: 12px;
|
| 21 |
}
|
| 22 |
+
.btn-primary {
|
| 23 |
background-color: #0078d7;
|
|
|
|
|
|
|
| 24 |
border: none;
|
|
|
|
| 25 |
}
|
| 26 |
+
.btn-primary:hover {
|
| 27 |
+
background-color: #005fa3;
|
| 28 |
+
}
|
| 29 |
+
.btn-danger {
|
| 30 |
+
background-color: #dc3545;
|
| 31 |
+
border: none;
|
| 32 |
+
}
|
| 33 |
+
.btn-danger:hover {
|
| 34 |
+
background-color: #b22a37;
|
| 35 |
+
}
|
| 36 |
+
h2 {
|
| 37 |
+
margin-bottom: 30px;
|
| 38 |
+
font-weight: 600;
|
| 39 |
+
color: #333;
|
| 40 |
+
}
|
| 41 |
+
.file-label {
|
| 42 |
+
font-weight: 600;
|
| 43 |
+
margin-bottom: 10px;
|
| 44 |
+
}
|
| 45 |
+
.message, .error {
|
| 46 |
+
margin-bottom: 20px;
|
| 47 |
+
font-weight: 500;
|
| 48 |
+
}
|
| 49 |
+
.message {
|
| 50 |
+
color: #28a745;
|
| 51 |
+
}
|
| 52 |
+
.error {
|
| 53 |
+
color: #dc3545;
|
| 54 |
+
}
|
| 55 |
</style>
|
| 56 |
</head>
|
| 57 |
<body>
|
| 58 |
+
<div class="main-container">
|
| 59 |
+
<h2>📊 IPM Golden vs Test Data Visualizer</h2>
|
| 60 |
+
|
| 61 |
+
{% if error %}
|
| 62 |
+
<div class="alert alert-danger">{{ error }}</div>
|
| 63 |
+
{% endif %}
|
| 64 |
+
{% if message %}
|
| 65 |
+
<div class="alert alert-success">{{ message }}</div>
|
| 66 |
+
{% endif %}
|
| 67 |
|
| 68 |
+
{% if not golden_loaded %}
|
| 69 |
+
<!-- Step 1: Upload Golden -->
|
| 70 |
+
<div class="card p-4 mb-4">
|
| 71 |
+
<h4 class="mb-3">Step 1️⃣: Upload Golden Data (.xlsx)</h4>
|
| 72 |
+
<form method="POST" enctype="multipart/form-data">
|
| 73 |
+
<input class="form-control mb-3" type="file" name="golden_file" accept=".xlsx" required>
|
| 74 |
+
<button type="submit" class="btn btn-primary w-100">Upload Golden Data</button>
|
| 75 |
+
</form>
|
| 76 |
+
</div>
|
| 77 |
+
{% else %}
|
| 78 |
+
<!-- Step 2: Upload Test -->
|
| 79 |
+
<div class="card p-4 mb-4">
|
| 80 |
+
<h4 class="mb-3">Step 2️⃣: Upload New Test Data (.xlsx)</h4>
|
| 81 |
+
<form method="POST" enctype="multipart/form-data">
|
| 82 |
+
<input class="form-control mb-3" type="file" name="test_file" accept=".xlsx" required>
|
| 83 |
+
<button type="submit" class="btn btn-primary w-100">Upload Test Data</button>
|
| 84 |
+
</form>
|
| 85 |
+
</div>
|
| 86 |
|
| 87 |
+
<!-- Reset Golden -->
|
| 88 |
+
<div class="card p-3 bg-light">
|
| 89 |
+
<form action="/reset_golden">
|
| 90 |
+
<button type="submit" class="btn btn-danger w-100">Reset Golden Data</button>
|
| 91 |
+
</form>
|
| 92 |
+
</div>
|
| 93 |
+
{% endif %}
|
| 94 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
</body>
|
| 96 |
</html>
|
templates/plot.html
CHANGED
|
@@ -1,28 +1,47 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html>
|
| 3 |
<head>
|
|
|
|
| 4 |
<title>IPM Data Plots</title>
|
|
|
|
| 5 |
<style>
|
| 6 |
body {
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
text-align: center;
|
| 9 |
-
|
| 10 |
-
padding: 20px;
|
| 11 |
}
|
| 12 |
img {
|
| 13 |
max-width: 90%;
|
| 14 |
-
border:
|
| 15 |
-
|
| 16 |
-
margin:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
select {
|
|
|
|
| 19 |
padding: 10px;
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
.preview-title {
|
| 24 |
-
font-weight:
|
| 25 |
-
margin-top:
|
| 26 |
}
|
| 27 |
</style>
|
| 28 |
<script>
|
|
@@ -33,24 +52,19 @@
|
|
| 33 |
</script>
|
| 34 |
</head>
|
| 35 |
<body>
|
| 36 |
-
<
|
| 37 |
-
|
| 38 |
-
<h3>Preview (First few plots):</h3>
|
| 39 |
-
{% for c in preview_cols %}
|
| 40 |
-
<div class="preview-title">{{ c }}</div>
|
| 41 |
-
<img src="/plot_image/{{ c }}" alt="{{ c }}">
|
| 42 |
-
{% endfor %}
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
</select>
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
<title>IPM Data Plots</title>
|
| 6 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
+
background: #f6f8fa;
|
| 10 |
+
font-family: "Segoe UI", Arial, sans-serif;
|
| 11 |
+
padding: 30px;
|
| 12 |
+
}
|
| 13 |
+
h2 {
|
| 14 |
text-align: center;
|
| 15 |
+
margin-bottom: 30px;
|
|
|
|
| 16 |
}
|
| 17 |
img {
|
| 18 |
max-width: 90%;
|
| 19 |
+
border-radius: 10px;
|
| 20 |
+
box-shadow: 0 3px 12px rgba(0,0,0,0.1);
|
| 21 |
+
margin: 20px auto;
|
| 22 |
+
display: block;
|
| 23 |
+
}
|
| 24 |
+
.dropdown-container {
|
| 25 |
+
text-align: center;
|
| 26 |
+
margin-top: 20px;
|
| 27 |
}
|
| 28 |
select {
|
| 29 |
+
width: 60%;
|
| 30 |
padding: 10px;
|
| 31 |
+
border-radius: 6px;
|
| 32 |
+
border: 1px solid #ccc;
|
| 33 |
+
}
|
| 34 |
+
.card {
|
| 35 |
+
border: none;
|
| 36 |
+
border-radius: 12px;
|
| 37 |
+
box-shadow: 0 3px 12px rgba(0,0,0,0.08);
|
| 38 |
+
background: #fff;
|
| 39 |
+
padding: 20px;
|
| 40 |
+
margin-bottom: 25px;
|
| 41 |
}
|
| 42 |
.preview-title {
|
| 43 |
+
font-weight: 600;
|
| 44 |
+
margin-top: 10px;
|
| 45 |
}
|
| 46 |
</style>
|
| 47 |
<script>
|
|
|
|
| 52 |
</script>
|
| 53 |
</head>
|
| 54 |
<body>
|
| 55 |
+
<div class="container">
|
| 56 |
+
<h2>📈 Golden vs Test Comparison</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+
<div class="card">
|
| 59 |
+
<h4>Preview (First few plots)</h4>
|
| 60 |
+
{% for c in preview_cols %}
|
| 61 |
+
<div class="preview-title">{{ c }}</div>
|
| 62 |
+
<img src="/plot_image/{{ c }}" alt="{{ c }}">
|
| 63 |
+
{% endfor %}
|
| 64 |
+
</div>
|
|
|
|
| 65 |
|
| 66 |
+
<div class="card">
|
| 67 |
+
<h4>Select Another Column to View</h4>
|
| 68 |
+
<div class="dropdown-container">
|
| 69 |
+
<select id="col-select" onchange="showPlot()">
|
| 70 |
+
<option
|