MaheshP98 commited on
Commit
384ebd3
·
verified ·
1 Parent(s): 08a746f

Create templates/report_template.html

Browse files
Files changed (1) hide show
  1. templates/report_template.html +35 -0
templates/report_template.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>LabOps Dashboard Report</title>
5
+ <style>
6
+ body { font-family: Arial, sans-serif; }
7
+ h1 { text-align: center; }
8
+ table { width: 100%; border-collapse: collapse; margin-top: 20px; }
9
+ th, td { border: 1px solid black; padding: 8px; text-align: center; }
10
+ th { background-color: #f2f2f2; }
11
+ </style>
12
+ </head>
13
+ <body>
14
+ <h1>LabOps Dashboard Report</h1>
15
+ <p>Lab: {{ lab_site }} | Equipment: {{ equipment_type }} | Date Range: {{ date_range[0] }} to {{ date_range[1] }}</p>
16
+ <table>
17
+ <tr>
18
+ <th>Equipment</th>
19
+ <th>Timestamp</th>
20
+ <th>Status</th>
21
+ <th>Usage Count</th>
22
+ <th>Anomaly</th>
23
+ </tr>
24
+ {% for row in data %}
25
+ <tr>
26
+ <td>{{ row["Equipment__c"] }}</td>
27
+ <td>{{ row["Log_Timestamp__c"] }}</td>
28
+ <td>{{ row["Status__c"] }}</td>
29
+ <td>{{ row["Usage_Count__c"] }}</td>
30
+ <td>{{ row["Anomaly"] }}</td>
31
+ </tr>
32
+ {% endfor %}
33
+ </table>
34
+ </body>
35
+ </html>