<html> | |
<head> | |
<title>LabOps Dashboard Report</title> | |
<style> | |
body { font-family: Arial, sans-serif; } | |
h1 { text-align: center; } | |
table { width: 100%; border-collapse: collapse; margin-top: 20px; } | |
th, td { border: 1px solid black; padding: 8px; text-align: center; } | |
th { background-color: #f2f2f2; } | |
</style> | |
</head> | |
<body> | |
<h1>LabOps Dashboard Report</h1> | |
<p>Lab: {{ lab_site }} | Equipment: {{ equipment_type }} | Date Range: {{ date_range[0] }} to {{ date_range[1] }}</p> | |
<table> | |
<tr> | |
<th>Equipment</th> | |
<th>Timestamp</th> | |
<th>Status</th> | |
<th>Usage Count</th> | |
<th>Anomaly</th> | |
</tr> | |
{% for row in data %} | |
<tr> | |
<td>{{ row["Equipment__c"] }}</td> | |
<td>{{ row["Log_Timestamp__c"] }}</td> | |
<td>{{ row["Status__c"] }}</td> | |
<td>{{ row["Usage_Count__c"] }}</td> | |
<td>{{ row["Anomaly"] }}</td> | |
</tr> | |
{% endfor %} | |
</table> | |
</body> | |
</html> | |