Update templates/index.html
Browse files- templates/index.html +9 -9
templates/index.html
CHANGED
|
@@ -28,13 +28,13 @@
|
|
| 28 |
</tr>
|
| 29 |
{% for log in vendor_logs %}
|
| 30 |
<tr>
|
| 31 |
-
<td>{{ log.Vendor_Log_ID__c }}</td>
|
| 32 |
-
<td>{{ log.Vendor__r.Vendor_Name__c }}</td>
|
| 33 |
-
<td>{{ log.Work_Completion_Percentage__c }}</td>
|
| 34 |
-
<td>{{ log.Quality_Percentage__c }}</td>
|
| 35 |
-
<td>{{ log.Incident_Severity__c }}</td>
|
| 36 |
-
<td>{{ log.Communication_Count__c }}</td>
|
| 37 |
-
<td>{{ log.Delay_Days__c }}</td>
|
| 38 |
</tr>
|
| 39 |
{% endfor %}
|
| 40 |
</table>
|
|
@@ -52,8 +52,8 @@
|
|
| 52 |
</tr>
|
| 53 |
{% for score in subcontractor_scores %}
|
| 54 |
<tr>
|
| 55 |
-
<td>{{ score.Vendor_Log_ID__c }}</td>
|
| 56 |
-
<td>{{ score.Vendor_Name__c }}</td>
|
| 57 |
<td>{{ score.scores.qualityScore }}</td>
|
| 58 |
<td>{{ score.scores.timelinessScore }}</td>
|
| 59 |
<td>{{ score.scores.safetyScore }}</td>
|
|
|
|
| 28 |
</tr>
|
| 29 |
{% for log in vendor_logs %}
|
| 30 |
<tr>
|
| 31 |
+
<td>{{ log.Vendor_Log_ID__c or 'N/A' }}</td>
|
| 32 |
+
<td>{{ log.Vendor__r.Vendor_Name__c or 'N/A' }}</td>
|
| 33 |
+
<td>{{ log.Work_Completion_Percentage__c if log.Work_Completion_Percentage__c is not none else 'N/A' }}</td>
|
| 34 |
+
<td>{{ log.Quality_Percentage__c if log.Quality_Percentage__c is not none else 'N/A' }}</td>
|
| 35 |
+
<td>{{ log.Incident_Severity__c or 'None' }}</td>
|
| 36 |
+
<td>{{ log.Communication_Count__c if log.Communication_Count__c is not none else '0' }}</td>
|
| 37 |
+
<td>{{ log.Delay_Days__c if log.Delay_Days__c is not none else '0' }}</td>
|
| 38 |
</tr>
|
| 39 |
{% endfor %}
|
| 40 |
</table>
|
|
|
|
| 52 |
</tr>
|
| 53 |
{% for score in subcontractor_scores %}
|
| 54 |
<tr>
|
| 55 |
+
<td>{{ score.Vendor_Log_ID__c or 'N/A' }}</td>
|
| 56 |
+
<td>{{ score.Vendor_Name__c or 'N/A' }}</td>
|
| 57 |
<td>{{ score.scores.qualityScore }}</td>
|
| 58 |
<td>{{ score.scores.timelinessScore }}</td>
|
| 59 |
<td>{{ score.scores.safetyScore }}</td>
|