Add ID column to UPS host list

This commit is contained in:
xiaji
2026-04-30 13:59:12 +08:00
parent 4961132a76
commit e14bc7bfd9

View File

@@ -29,6 +29,7 @@
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>ID</th>
<th>主机名称</th> <th>主机名称</th>
<th>品牌</th> <th>品牌</th>
<th>型号</th> <th>型号</th>
@@ -43,6 +44,7 @@
<tbody> <tbody>
{% for ups in ups_list %} {% for ups in ups_list %}
<tr> <tr>
<td>{{ ups.id }}</td>
<td>{{ ups.brand }} {{ ups.model }}</td> <td>{{ ups.brand }} {{ ups.model }}</td>
<td>{{ ups.brand }}</td> <td>{{ ups.brand }}</td>
<td>{{ ups.model }}</td> <td>{{ ups.model }}</td>
@@ -58,7 +60,7 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<td colspan="9" class="text-center text-muted">暂无UPS主机记录</td> <td colspan="10" class="text-center text-muted">暂无UPS主机记录</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>