diff --git a/__pycache__/app.cpython-314.pyc b/__pycache__/app.cpython-314.pyc index a7d8794..27d5bbe 100644 Binary files a/__pycache__/app.cpython-314.pyc and b/__pycache__/app.cpython-314.pyc differ diff --git a/templates/cabinets.html b/templates/cabinets.html index c37cdee..e02c970 100644 --- a/templates/cabinets.html +++ b/templates/cabinets.html @@ -12,6 +12,12 @@ .row-actions { background: #f8f9fa; } + .cabinet-floor-sep td { + background: #d0d0d0 !important; + font-weight: 700; + padding-top: 3px !important; + padding-bottom: 3px !important; + } .row-actions__inner { max-height: 0; opacity: 0; @@ -215,22 +221,26 @@ - - + {% set ns = namespace(current_floor='__INIT__') %} {% for row in rows %} + {% set floor_label = row.floor or 'Без этажа' %} + {% if ns.current_floor != floor_label %} + + + + {% set ns.current_floor = floor_label %} + {% endif %} - - {% else %} - + {% endfor %}
КабинетЭтажЗдание
Этаж: {{ floor_label }}
{{ row.cabinet }}{{ row.floor or '—' }}{{ row.building or '—' }}
Кабинеты не добавлены.Кабинеты не добавлены.
@@ -644,7 +654,7 @@ const rowId = row.getAttribute('data-id') || ''; const actionRow = document.createElement('tr'); actionRow.className = 'row-actions'; - actionRow.innerHTML = ` + actionRow.innerHTML = `
diff --git a/templates/computers.html b/templates/computers.html index 21bf201..cc112d3 100644 --- a/templates/computers.html +++ b/templates/computers.html @@ -98,6 +98,17 @@ gap: 0.5rem; margin-top: 1rem; } + .specs-modal__name { + margin-bottom: 0.7rem; + font-weight: 600; + } + .specs-modal__list { + margin: 0; + padding-left: 1rem; + } + .specs-modal__list li { + margin-bottom: 0.2rem; + } .computer-add-card { position: relative; } @@ -110,6 +121,7 @@

Компьютеры / Ноутбуки

+ Экспорт в Excel
{% if session.get('role') not in ('admin','storekeeper') %} @@ -242,6 +254,18 @@
Ноутбуки
+ + + + + + + + + + + + Бренд - - @@ -358,40 +380,12 @@ - - - + {% endif %} {% endfor %} @@ -399,15 +393,25 @@
Персональные компьютеры
Модель Серийный №Тип ID RustDesk Пароль RustDeskХарактеристики Кабинет Примечание Дата ввода{{ brand or '' }} {{ model or '' }} {{ sn or '' }}Ноутбук {{ rustdesk_id or '' }} {{ rustdesk_password or '' }} - {% set has_specs = cpu_brand or cpu_model or gpu_model or mem_size or mem_type or storage_size or motherboard or os_name %} - {% set mem_text = mem_size %} - {% if mem_size %} - {% set mem_lower = (mem_size|string)|lower %} - {% if 'гб' not in mem_lower and 'gb' not in mem_lower %} - {% set mem_text = mem_size ~ ' ГБ' %} - {% endif %} - {% endif %} - {% set storage_text = storage_size %} - {% if storage_size %} - {% set storage_lower = (storage_size|string)|lower %} - {% if 'гб' not in storage_lower and 'gb' not in storage_lower %} - {% set storage_text = storage_size ~ ' ГБ' %} - {% endif %} - {% endif %} - {% if has_specs %} - {% if cpu_brand or cpu_model %}
CPU: {{ cpu_brand or '' }} {{ cpu_model or '' }}
{% endif %} - {% if gpu_model %}
GPU: {{ gpu_model }}
{% endif %} - {% if mem_text or mem_type %}
Память: {{ mem_text or '' }} {{ mem_type or '' }}
{% endif %} - {% if storage_text %}
Накопитель: {{ storage_text }}
{% endif %} - {% if motherboard %}
Материнская плата: {{ motherboard }}
{% endif %} - {% if os_name %}
ОС: {{ os_name }}
{% endif %} - {% else %} - - {% endif %} -
{{ cab_name or '' }} {{ note or '' }} {{ date_in_operation or '' }}{{ date_added }}{{ date_added.strftime('%Y-%m-%d') if date_added and date_added.strftime else (date_added|string)[:10] if date_added else '' }}
+ + + + + + + + + + + + - - @@ -499,40 +503,12 @@ - - - + {% endif %} {% endfor %} @@ -642,6 +618,16 @@ + {% endif %}
Инв. № Бренд Модель Серийный №Тип ID RustDesk Пароль RustDeskХарактеристики Кабинет Примечание Дата ввода{{ brand or '' }} {{ model or '' }} {{ sn or '' }}ПК {{ rustdesk_id or '' }} {{ rustdesk_password or '' }} - {% set has_specs = cpu_brand or cpu_model or gpu_model or mem_size or mem_type or storage_size or motherboard or os_name %} - {% set mem_text = mem_size %} - {% if mem_size %} - {% set mem_lower = (mem_size|string)|lower %} - {% if 'гб' not in mem_lower and 'gb' not in mem_lower %} - {% set mem_text = mem_size ~ ' ГБ' %} - {% endif %} - {% endif %} - {% set storage_text = storage_size %} - {% if storage_size %} - {% set storage_lower = (storage_size|string)|lower %} - {% if 'гб' not in storage_lower and 'gb' not in storage_lower %} - {% set storage_text = storage_size ~ ' ГБ' %} - {% endif %} - {% endif %} - {% if has_specs %} - {% if cpu_brand or cpu_model %}
CPU: {{ cpu_brand or '' }} {{ cpu_model or '' }}
{% endif %} - {% if gpu_model %}
GPU: {{ gpu_model }}
{% endif %} - {% if mem_text or mem_type %}
Память: {{ mem_text or '' }} {{ mem_type or '' }}
{% endif %} - {% if storage_text %}
Накопитель: {{ storage_text }}
{% endif %} - {% if motherboard %}
Материнская плата: {{ motherboard }}
{% endif %} - {% if os_name %}
ОС: {{ os_name }}
{% endif %} - {% else %} - - {% endif %} -
{{ cab_name or '' }} {{ note or '' }} {{ date_in_operation or '' }}{{ date_added }}{{ date_added.strftime('%Y-%m-%d') if date_added and date_added.strftime else (date_added|string)[:10] if date_added else '' }}