Update templates/dashboard.html
Browse files- templates/dashboard.html +32 -34
templates/dashboard.html
CHANGED
|
@@ -109,12 +109,12 @@
|
|
| 109 |
<div style="display: flex; gap: 20px; flex-wrap: wrap;">
|
| 110 |
{% for log in top_performing_logs %}
|
| 111 |
<div style="flex: 1; min-width: 200px;">
|
| 112 |
-
<p>{{ log.vendorLogName }}<br><small>Last updated: 5/
|
| 113 |
-
<span class="score-circle"
|
| 114 |
-
<span class="score-circle"
|
| 115 |
-
<span class="score-circle"
|
| 116 |
-
<span class="score-circle"
|
| 117 |
-
<span class="score-circle"
|
| 118 |
</div>
|
| 119 |
{% endfor %}
|
| 120 |
</div>
|
|
@@ -130,33 +130,31 @@
|
|
| 130 |
<div class="reports-section">
|
| 131 |
<div>
|
| 132 |
<h3>Generate Vendor Report</h3>
|
| 133 |
-
<
|
| 134 |
-
<
|
| 135 |
-
|
| 136 |
-
<
|
| 137 |
-
|
| 138 |
-
{% for
|
| 139 |
-
<option>{{
|
| 140 |
{% endfor %}
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
<
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
<
|
| 157 |
-
|
| 158 |
-
</div>
|
| 159 |
-
<button class="btn">Generate Report</button>
|
| 160 |
</div>
|
| 161 |
<div>
|
| 162 |
<h3>Recent Reports</h3>
|
|
@@ -165,7 +163,7 @@
|
|
| 165 |
<div style="margin-bottom: 10px;">
|
| 166 |
📄 {{ log.vendorLogName }} - Monthly Performance
|
| 167 |
<span style="float: right;">
|
| 168 |
-
<small>5/
|
| 169 |
<a href="#" style="margin-left: 10px;">⬇</a>
|
| 170 |
</span>
|
| 171 |
</div>
|
|
@@ -175,7 +173,7 @@
|
|
| 175 |
{% endif %}
|
| 176 |
<small>Last report generated: 3 hours ago</small>
|
| 177 |
<br>
|
| 178 |
-
<a href="
|
| 179 |
</div>
|
| 180 |
</div>
|
| 181 |
</div>
|
|
|
|
| 109 |
<div style="display: flex; gap: 20px; flex-wrap: wrap;">
|
| 110 |
{% for log in top_performing_logs %}
|
| 111 |
<div style="flex: 1; min-width: 200px;">
|
| 112 |
+
<p>{{ log.vendorLogName }}<br><small>Last updated: 5/15/2025</small></p>
|
| 113 |
+
<span class="score-circle">{{ log.scores.finalScore }}</span> Overall
|
| 114 |
+
<span class="score-circle">{{ log.scores.qualityScore }}</span> Quality
|
| 115 |
+
<span class="score-circle">{{ log.scores.timelinessScore }}</span> Time
|
| 116 |
+
<span class="score-circle">{{ log.scores.safetyScore }}</span> Safety
|
| 117 |
+
<span class="score-circle">{{ log.scores.communicationScore }}</span> Comm
|
| 118 |
</div>
|
| 119 |
{% endfor %}
|
| 120 |
</div>
|
|
|
|
| 130 |
<div class="reports-section">
|
| 131 |
<div>
|
| 132 |
<h3>Generate Vendor Report</h3>
|
| 133 |
+
<form action="/generate_report" method="POST">
|
| 134 |
+
<div style="margin-bottom: 10px;">
|
| 135 |
+
<label>Select Vendor</label><br>
|
| 136 |
+
<select name="vendor_name" style="width: 100%; padding: 8px; margin-top: 5px;" required>
|
| 137 |
+
<option value="">Choose a vendor</option>
|
| 138 |
+
{% for vendor in vendor_names %}
|
| 139 |
+
<option value="{{ vendor }}">{{ vendor }}</option>
|
| 140 |
{% endfor %}
|
| 141 |
+
</select>
|
| 142 |
+
</div>
|
| 143 |
+
<div style="margin-bottom: 10px;">
|
| 144 |
+
<label>Report Month</label><br>
|
| 145 |
+
<input type="text" name="report_month" value="{{ report_month }}" readonly style="width: 100%; padding: 8px; margin-top: 5px;">
|
| 146 |
+
</div>
|
| 147 |
+
<div style="margin-bottom: 10px;">
|
| 148 |
+
<label>Include in Report</label><br>
|
| 149 |
+
<label class="checkbox-label"><input type="checkbox" checked> Quality Metrics</label>
|
| 150 |
+
<label class="checkbox-label"><input type="checkbox" checked> Timeliness</label>
|
| 151 |
+
<label class="checkbox-label"><input type="checkbox" checked> Safety Record</label>
|
| 152 |
+
<label class="checkbox-label"><input type="checkbox" checked> Communication</label>
|
| 153 |
+
<label class="checkbox-label"><input type="checkbox" checked> Incidents</label>
|
| 154 |
+
<label class="checkbox-label"><input type="checkbox" checked> Recommendations</label>
|
| 155 |
+
</div>
|
| 156 |
+
<button type="submit" class="btn">Generate Report</button>
|
| 157 |
+
</form>
|
|
|
|
|
|
|
| 158 |
</div>
|
| 159 |
<div>
|
| 160 |
<h3>Recent Reports</h3>
|
|
|
|
| 163 |
<div style="margin-bottom: 10px;">
|
| 164 |
📄 {{ log.vendorLogName }} - Monthly Performance
|
| 165 |
<span style="float: right;">
|
| 166 |
+
<small>5/15/2025</small>
|
| 167 |
<a href="#" style="margin-left: 10px;">⬇</a>
|
| 168 |
</span>
|
| 169 |
</div>
|
|
|
|
| 173 |
{% endif %}
|
| 174 |
<small>Last report generated: 3 hours ago</small>
|
| 175 |
<br>
|
| 176 |
+
<a href="/reports" style="color: #1976d2;">View All Reports</a>
|
| 177 |
</div>
|
| 178 |
</div>
|
| 179 |
</div>
|