Update alpha v0.922

This commit is contained in:
2026-03-04 15:59:10 -08:00
parent 23b20109f1
commit 371d28ed0b
6 changed files with 646 additions and 127 deletions

View File

@@ -43,6 +43,11 @@
white-space: normal;
word-break: break-word;
}
.devices-table {
table-layout: fixed;
width: 1285px;
min-width: 1285px;
}
.row-actions {
background: #f8f9fa;
}
@@ -106,6 +111,13 @@
right: 12px;
top: 12px;
}
.devices-summary {
text-align: center;
margin-top: -2px;
margin-bottom: 8px;
color: #5f5f5f;
font-weight: 500;
}
</style>
<div class="devices-page">
<div class="d-flex align-items-center justify-content-between mb-2">
@@ -188,7 +200,19 @@
</div>
{% endif %}
<table class="table table-striped align-middle">
<div class="table-responsive">
<table class="table table-striped align-middle devices-table">
<colgroup>
<col style="width:155px">
<col style="width:100px">
<col style="width:200px">
<col style="width:150px">
<col style="width:70px">
<col style="width:260px">
<col style="width:150px">
<col style="width:100px">
<col style="width:100px">
</colgroup>
<tr class="device-row">
<th>Инв. №</th>
<th>Бренд</th>
@@ -244,7 +268,7 @@
<td>
<input name="date_in_operation" type="date" value="{{ date_in_operation.strftime('%Y-%m-%d') if date_in_operation else '' }}" class="form-control form-control-sm js-edit-field" disabled>
</td>
<td>{{ date_added }}</td>
<td>{{ (date_added|string)[:10] if date_added else '' }}</td>
</form>
{% else %}
<td>{{ inv }}</td>
@@ -255,11 +279,17 @@
<td>{{ cab_name or '' }}</td>
<td>{{ note or '' }}</td>
<td>{{ date_in_operation or '' }}</td>
<td>{{ date_added }}</td>
<td>{{ (date_added|string)[:10] if date_added else '' }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
</div>
<div class="devices-summary">
Всего: {{ total_devices }} |
Принтеры: {{ printers_count }} |
МФУ: {{ mfp_count }}
</div>
{% if session.get('role') in ('admin','storekeeper') %}
<div class="edit-modal" id="deviceEditModal" aria-hidden="true">
<div class="edit-modal__dialog">