lokesh341 commited on
Commit
4652763
·
verified ·
1 Parent(s): 2e47d2a

Update templates/dashboard.html

Browse files
Files changed (1) hide show
  1. 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/1/2025</small></p>
113
- <span class="score-circle" style="background: #e0e0e0;">{{ log.scores.finalScore }}</span> Overall
114
- <span class="score-circle" style="background: #e0e0e0;">{{ log.scores.qualityScore }}</span> Quality
115
- <span class="score-circle" style="background: #e0e0e0;">{{ log.scores.timelinessScore }}</span> Time
116
- <span class="score-circle" style="background: #e0e0e0;">{{ log.scores.safetyScore }}</span> Safety
117
- <span class="score-circle" style="background: #e0e0e0;">{{ log.scores.communicationScore }}</span> Comm
118
  </div>
119
  {% endfor %}
120
  </div>
@@ -130,33 +130,31 @@
130
  <div class="reports-section">
131
  <div>
132
  <h3>Generate Vendor Report</h3>
133
- <div style="margin-bottom: 10px;">
134
- <label>Select Vendor</label><br>
135
- <select style="width: 100%; padding: 8px; margin-top: 5px;">
136
- <option>Choose a vendor</option>
137
- {% if vendor_logs %}
138
- {% for log in vendor_logs %}
139
- <option>{{ log.vendorLogName }}</option>
140
  {% endfor %}
141
- {% else %}
142
- <option>No vendors available</option>
143
- {% endif %}
144
- </select>
145
- </div>
146
- <div style="margin-bottom: 10px;">
147
- <label>Report Month</label><br>
148
- <input type="text" value="May, 2025" readonly style="width: 100%; padding: 8px; margin-top: 5px;">
149
- </div>
150
- <div style="margin-bottom: 10px;">
151
- <label>Include in Report</label><br>
152
- <label class="checkbox-label"><input type="checkbox" checked> Quality Metrics</label>
153
- <label class="checkbox-label"><input type="checkbox" checked> Timeliness</label>
154
- <label class="checkbox-label"><input type="checkbox" checked> Safety Record</label>
155
- <label class="checkbox-label"><input type="checkbox" checked> Communication</label>
156
- <label class="checkbox-label"><input type="checkbox" checked> Incidents</label>
157
- <label class="checkbox-label"><input type="checkbox" checked> Recommendations</label>
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/1/2025</small>
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="#" style="color: #1976d2;">View All Reports</a>
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>