Add checking if results are empty #182
This commit is contained in:
parent
9e5b597d44
commit
179fbe3718
1 changed files with 45 additions and 33 deletions
|
|
@ -40,6 +40,9 @@
|
||||||
<div id="data-rows">
|
<div id="data-rows">
|
||||||
<p> Legacy Job Orders </p>
|
<p> Legacy Job Orders </p>
|
||||||
<table>
|
<table>
|
||||||
|
{% if data.legacy_job_orders is empty %}
|
||||||
|
<td colspan=100> No records for legacy job orders </td>
|
||||||
|
{% else %}
|
||||||
<th> ID </th>
|
<th> ID </th>
|
||||||
<th> Last Name </th>
|
<th> Last Name </th>
|
||||||
<th> Plate Number </th>
|
<th> Plate Number </th>
|
||||||
|
|
@ -51,9 +54,13 @@
|
||||||
<td> {{ result.getPlateNumber | default('') }} </td>
|
<td> {{ result.getPlateNumber | default('') }} </td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
<p> Job Orders </p>
|
<p> Job Orders </p>
|
||||||
<table>
|
<table>
|
||||||
|
{% if data.job_orders is empty %}
|
||||||
|
<td colspan=100> No records for job orders </td>
|
||||||
|
{% else %}
|
||||||
<th> ID </th>
|
<th> ID </th>
|
||||||
<th> Last Name </th>
|
<th> Last Name </th>
|
||||||
<th> Plate Number </th>
|
<th> Plate Number </th>
|
||||||
|
|
@ -65,9 +72,13 @@
|
||||||
<td> {{ result.getCustomerVehicle.getPlateNumber }}</td>
|
<td> {{ result.getCustomerVehicle.getPlateNumber }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
<p> Warranties </p>
|
<p> Warranties </p>
|
||||||
<table>
|
<table>
|
||||||
|
{% if data.warranties is empty %}
|
||||||
|
<td colspan=100> No records for warranties </td>
|
||||||
|
{% else %}
|
||||||
<th> ID </th>
|
<th> ID </th>
|
||||||
<th> Last Name </th>
|
<th> Last Name </th>
|
||||||
<th> Plate Number </th>
|
<th> Plate Number </th>
|
||||||
|
|
@ -79,6 +90,7 @@
|
||||||
<td> {{ result.getPlateNumber }} </td>
|
<td> {{ result.getPlateNumber }} </td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<!--end: Datatable -->
|
<!--end: Datatable -->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue