ui: pick Hikvision channel (1-32) instead of typing full stream paths

Cameras (esp. an NVR at one IP with many channels) are configured by a channel
number now: channel N → main /Streaming/Channels/{N*100+1}, sub {N*100+2}
(101/102 = ch1, 1101/1102 = ch11, 3201/3202 = ch32). The add/edit form and the
bulk-edit row use a 1-32 dropdown; the camera list shows "канал N". Frontend
derives main_path/sub_path from the channel, so the backend is unchanged.

VERSION 0.0.132.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-01 20:29:40 +05:00
parent abc726b5a7
commit 20dfed0bae
3 changed files with 25 additions and 14 deletions
+2 -2
View File
@@ -437,8 +437,8 @@ button.primary { background: var(--accent); border-color: #c0392b; color: #fff;
button.danger { border-color: #c0392b; color: #e74c3c; }
button.danger:hover { background: #c0392b; border-color: #c0392b; color: #fff; }
table.cams td.actions button { padding: 2px 8px; font-size: 12px; }
/* инлайн-выбор хранилища в строке — компактный, не раздувает высоту строки (как тумблеры) */
table.cams td select.stor-sel {
/* инлайн-селекты в строке (хранилище, канал) — компактные, не раздувают высоту строки */
table.cams td select.stor-sel, table.cams td select.cell-sel {
height: 22px; padding: 1px 4px; font-size: 12px; line-height: 1;
border-radius: 5px; width: 100%; max-width: 150px; box-sizing: border-box;
vertical-align: middle;