Channel 11 defaults, ESP-NOW driver config and rig/desktop updates
Moves the controller, bridge and led-driver default ESP-NOW channel to 11 and updates the led-driver and led-tool submodule pointers. Includes the rest of the working tree: web UI, desktop and sim-controller changes, API and bridge code, graphify output, and the .gitea and fixture-driver folders. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
35207a868a
commit
edf35e9c71
280 files changed
+24043
-1756
No files matched your search
+185
-85
@@ -65,14 +65,13 @@
|
||||
</div>
|
||||
<button type="button" data-target="profiles-btn">Profiles</button>
|
||||
<button type="button" class="edit-mode-only" data-target="devices-btn">Devices</button>
|
||||
<button type="button" class="edit-mode-only" id="menu-hide-sim-btn" aria-pressed="false" title="Hide the rig page's simulated drivers (/sim/) in the Devices list">Hide sim devices</button>
|
||||
<button type="button" class="edit-mode-only" data-target="groups-btn">Groups</button>
|
||||
<button type="button" class="edit-mode-only" data-target="outputs-btn">Outputs</button>
|
||||
<button type="button" class="edit-mode-only" data-target="sequences-btn">Sequences</button>
|
||||
<button type="button" class="edit-mode-only" data-target="zones-btn">Zones</button>
|
||||
<button type="button" class="edit-mode-only" data-target="presets-btn">Presets</button>
|
||||
<button type="button" class="edit-mode-only" data-target="patterns-btn">Patterns</button>
|
||||
<button type="button" class="edit-mode-only" data-target="color-palette-btn">Colour Palette</button>
|
||||
<button type="button" class="edit-mode-only" data-target="audio-btn">Audio</button>
|
||||
<button type="button" class="edit-mode-only" data-target="settings-btn">Settings</button>
|
||||
<button type="button" data-target="help-btn">Help</button>
|
||||
</div>
|
||||
@@ -186,7 +185,10 @@
|
||||
</div>
|
||||
<small id="devices-add-status" class="muted-text" aria-live="polite"></small>
|
||||
</div>
|
||||
<input type="search" id="devices-search" class="list-search-input" placeholder="Search devices…" autocomplete="off">
|
||||
<div class="devices-list-filters">
|
||||
<input type="search" id="devices-search" class="list-search-input" placeholder="Search devices…" autocomplete="off">
|
||||
<label class="devices-hide-sim" title="Hide the rig page's simulated drivers (/sim/)"><input type="checkbox" id="devices-hide-sim"> Hide sim devices <span id="devices-sim-count" class="muted-text"></span></label>
|
||||
</div>
|
||||
<div id="devices-list-modal" class="profiles-list"></div>
|
||||
<div class="modal-actions" style="align-items:center;gap:0.75rem;flex-wrap:wrap;">
|
||||
<button type="button" class="btn btn-secondary" id="devices-ping-btn" title="ESP-NOW broadcast ping (3 s)">Ping drivers</button>
|
||||
@@ -294,6 +296,11 @@
|
||||
<option value="brg">BRG</option>
|
||||
<option value="bgr">BGR</option>
|
||||
</select>
|
||||
<label for="edit-device-espnow-pin" style="margin-top:0.5rem;display:block;">Data pin (GPIO 0–10, 20, 21)</label>
|
||||
<input type="number" id="edit-device-espnow-pin" min="0" max="21" step="1" placeholder="10">
|
||||
<label for="edit-device-espnow-channel" style="margin-top:0.5rem;display:block;">ESP-NOW channel (1–13)</label>
|
||||
<input type="number" id="edit-device-espnow-channel" min="1" max="13" step="1" placeholder="11">
|
||||
<small class="muted-text">Changing the channel restarts the driver onto it: move the bridge to the same channel too, or the driver is out of reach.</small>
|
||||
</div>
|
||||
<div id="edit-device-address-wifi-wrap" style="margin-top:0.75rem;" hidden>
|
||||
<label for="edit-device-address-wifi">Address (IP or hostname)</label>
|
||||
@@ -348,7 +355,8 @@
|
||||
<div class="modal-actions">
|
||||
<button class="btn btn-primary" id="preset-add-btn">Add</button>
|
||||
<button type="button" class="btn btn-secondary" id="import-preset-btn">Import</button>
|
||||
<button class="btn btn-danger" id="preset-clear-device-btn">Clear Device Presets</button>
|
||||
<button type="button" class="btn btn-secondary" id="preset-sync-btn" title="Send every preset to every driver and save it there">Sync to Devices</button>
|
||||
<button type="button" class="btn btn-secondary" id="preset-clear-device-btn" title="Delete every stored preset on every device">Clear Devices</button>
|
||||
</div>
|
||||
<input type="search" id="presets-search" class="list-search-input" placeholder="Search presets…" autocomplete="off">
|
||||
<div id="presets-list" class="profiles-list"></div>
|
||||
@@ -392,6 +400,11 @@
|
||||
<button type="button" class="tl-tbtn" id="tl-play" title="Save, then play it in the current zone">▶</button>
|
||||
<button type="button" class="tl-tbtn" id="tl-stop" title="Stop the sequence">■</button>
|
||||
</div>
|
||||
<!-- Where Play plays it (host builds with the simulator): the simulated bars only, or everywhere -->
|
||||
<div class="tl-tgroup tl-seg" id="tl-target" role="group" aria-label="Where Play plays the sequence" hidden>
|
||||
<button type="button" data-target="sim" aria-pressed="true" title="Play it on the simulator only: the real fixtures keep their show">Sim only</button>
|
||||
<button type="button" data-target="both" aria-pressed="false" title="Play it on the simulator and the real fixtures, in the current zone">Both</button>
|
||||
</div>
|
||||
<div class="tl-lcd" title="Playhead position"><span id="tl-pos">1.1</span></div>
|
||||
<!-- What clips are measured in -->
|
||||
<label class="tl-tfield" title="Clips last beats, or seconds"><select id="sequence-editor-mode">
|
||||
@@ -1114,7 +1127,7 @@
|
||||
<li><strong>Settings</strong> (Edit mode): the controller's name, the ESP-NOW channel, its mDNS hostname and the static IPs it tries on the Ethernet link.</li>
|
||||
<li>Network changes apply after the controller restarts.</li>
|
||||
<li>The controller talks to the drivers over ESP-NOW itself; there is no bridge to set up.</li>
|
||||
<li>Configure a driver with <strong>Driver</strong> in Settings, over ESP-NOW, or over USB with <code>led-cli</code> on a computer.</li>
|
||||
<li>Configure a driver over ESP-NOW, or over USB with <code>led-cli</code> on a computer.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1122,14 +1135,35 @@
|
||||
</div>
|
||||
|
||||
<!-- Audio Modal -->
|
||||
<div id="audio-modal" class="modal">
|
||||
<div class="modal-content audio-modal-content">
|
||||
<!-- Settings Modal -->
|
||||
<div id="settings-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<div class="modal-head">
|
||||
<h2>Audio Beat Detection</h2>
|
||||
<h2>Device Settings</h2>
|
||||
<div class="modal-top-actions">
|
||||
<button type="button" class="btn btn-secondary" id="audio-close-btn">Close</button>
|
||||
<button type="button" class="btn btn-secondary" id="settings-close-btn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings-tabs" role="tablist" aria-label="Settings sections">
|
||||
<button type="button" class="settings-tab-btn active" role="tab" id="settings-tab-network" data-settings-tab="network" aria-selected="true" aria-controls="settings-panel-network">Network</button>
|
||||
<button type="button" class="settings-tab-btn" role="tab" id="settings-tab-bridges" data-settings-tab="bridges" aria-selected="false" aria-controls="settings-panel-bridges">Bridges</button>
|
||||
<button type="button" class="settings-tab-btn" role="tab" id="settings-tab-outputs" data-settings-tab="outputs" aria-selected="false" aria-controls="settings-panel-outputs">Outputs</button>
|
||||
<button type="button" class="settings-tab-btn" role="tab" id="settings-tab-audio" data-settings-tab="audio" aria-selected="false" aria-controls="settings-panel-audio">Audio</button>
|
||||
<button type="button" class="settings-tab-btn" role="tab" id="settings-tab-users" data-settings-tab="users" aria-selected="false" aria-controls="settings-panel-users">Users</button>
|
||||
</div>
|
||||
|
||||
<div id="settings-message" class="message"></div>
|
||||
|
||||
<div id="settings-panel-outputs" class="settings-tab-panel" data-settings-panel="outputs" role="tabpanel" aria-labelledby="settings-tab-outputs" hidden>
|
||||
<p class="muted-text">Network pixel fixtures (DDP, Art-Net, sACN). Test sends a red, green, blue and white pattern; zones do not render to outputs on this controller.</p>
|
||||
<div id="outputs-list-modal" class="profiles-list"></div>
|
||||
<div class="modal-actions">
|
||||
<button type="button" class="btn btn-primary" id="output-add-btn">Add output</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="settings-panel-audio" class="settings-tab-panel" data-settings-panel="audio" role="tabpanel" aria-labelledby="settings-tab-audio" hidden>
|
||||
<div id="audio-modal" class="audio-modal-content">
|
||||
<div class="form-group audio-device-block">
|
||||
<label for="audio-device-select">Input device</label>
|
||||
<div class="profiles-actions audio-device-select-row">
|
||||
@@ -1177,69 +1211,34 @@
|
||||
<button type="button" class="btn btn-secondary" id="audio-stop-btn">Stop</button>
|
||||
<button type="button" class="btn btn-secondary" id="audio-reset-btn" disabled title="Clear stuck BPM / beat tracking">Reset detector</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Settings Modal -->
|
||||
<div id="settings-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<h2>Device Settings</h2>
|
||||
<div class="settings-tabs" role="tablist" aria-label="Settings sections">
|
||||
<button type="button" class="settings-tab-btn active" role="tab" id="settings-tab-controller" data-settings-tab="controller" aria-selected="true" aria-controls="settings-panel-controller">Controller</button>
|
||||
<button type="button" class="settings-tab-btn" role="tab" id="settings-tab-network" data-settings-tab="network" aria-selected="false" aria-controls="settings-panel-network">Network</button>
|
||||
<button type="button" class="settings-tab-btn" role="tab" id="settings-tab-led-tool" data-settings-tab="led-tool" aria-selected="false" aria-controls="settings-panel-led-tool">Driver</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="settings-panel-controller" class="settings-tab-panel active" data-settings-panel="controller" role="tabpanel" aria-labelledby="settings-tab-controller">
|
||||
<p class="muted-text">Controller name and ESP-NOW channel.</p>
|
||||
|
||||
<div id="settings-message" class="message"></div>
|
||||
|
||||
<!-- Device Name -->
|
||||
<div class="settings-section">
|
||||
<h3>Device</h3>
|
||||
<form id="device-form">
|
||||
<div class="form-group">
|
||||
<label for="device-name-input">Device Name</label>
|
||||
<input type="text" id="device-name-input" name="device_name" placeholder="e.g. led-controller" required>
|
||||
<small>This name may be used for mDNS (e.g. <code>name.local</code>) and UI display.</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="wifi-channel-input">WiFi channel (ESP-NOW)</label>
|
||||
<input type="number" id="wifi-channel-input" name="wifi_channel" min="1" max="11" required>
|
||||
<small>Stored for reference: the controller's ESP-NOW channel is set at build time (<code>make menuconfig</code>).</small>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="submit" class="btn btn-primary btn-full">Save device settings</button>
|
||||
</div>
|
||||
</form>
|
||||
<div id="settings-panel-users" class="settings-tab-panel" data-settings-panel="users" role="tabpanel" aria-labelledby="settings-tab-users" hidden>
|
||||
<div id="settings-users-body" class="auth-body"></div>
|
||||
</div>
|
||||
|
||||
<div id="settings-panel-bridges" class="settings-tab-panel" data-settings-panel="bridges" role="tabpanel" aria-labelledby="settings-tab-bridges" hidden>
|
||||
<!-- Bridges: USB boards and network boards that carry the radio frames (hidden where not supported) -->
|
||||
<div id="bridge-section" hidden>
|
||||
<div class="profiles-actions">
|
||||
<button type="button" class="btn btn-primary" id="bridge-add-btn">Add bridge</button>
|
||||
<button type="button" class="btn btn-secondary" id="bridge-refresh-btn">Refresh</button>
|
||||
<button type="button" class="btn btn-secondary" id="dmx-defs-btn">DMX definitions</button>
|
||||
</div>
|
||||
<datalist id="bridge-ports"></datalist>
|
||||
<input type="search" id="bridge-search" class="list-search-input" placeholder="Search bridges…" autocomplete="off">
|
||||
<div id="bridge-list" class="profiles-list"></div>
|
||||
<small class="muted-text">Every ESP-NOW frame goes to each bridge, and a frame that several bridges hear arrives once. A USB board is its port (<code>/dev/ttyACM1</code>); a network board is <code>host:port</code> (UDP). A DMX bridge sends its universes to Art-Net, sACN or USB-DMX 40 times a second; each of its fixtures is a driver of its own, listed under Devices.</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="settings-panel-network" class="settings-tab-panel" data-settings-panel="network" role="tabpanel" aria-labelledby="settings-tab-network" hidden>
|
||||
<div id="settings-panel-network" class="settings-tab-panel active" data-settings-panel="network" role="tabpanel" aria-labelledby="settings-tab-network">
|
||||
<div class="settings-section">
|
||||
<h3>Connected</h3>
|
||||
<div id="network-status" class="muted-text">Loading…</div>
|
||||
</div>
|
||||
|
||||
<!-- Bridges: USB boards and network boards that carry the radio frames (hidden where not supported) -->
|
||||
<div class="settings-section" id="bridge-section" hidden>
|
||||
<h3>Bridges</h3>
|
||||
<small>Every ESP-NOW frame goes to each bridge, and a frame that several bridges hear arrives once. A USB board is its port (<code>/dev/ttyACM1</code>); a network board is <code>host:port</code> (UDP).</small>
|
||||
<div id="bridge-list"></div>
|
||||
<form id="bridge-add-form">
|
||||
<div class="form-group">
|
||||
<label for="bridge-add-input">Add a bridge</label>
|
||||
<input type="text" id="bridge-add-input" list="bridge-ports" placeholder="/dev/ttyACM1 or 192.168.1.50:8766" maxlength="79" autocomplete="off">
|
||||
<datalist id="bridge-ports"></datalist>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-secondary btn-full" id="bridge-refresh-btn">Refresh</button>
|
||||
<button type="submit" class="btn btn-primary btn-full">Add</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Network -->
|
||||
<div class="settings-section">
|
||||
@@ -1264,11 +1263,6 @@
|
||||
<input type="text" id="ap-password-input" placeholder="open (no password)" minlength="8" maxlength="63" autocomplete="off">
|
||||
<small>8 to 63 characters (WPA2). Leave empty for an open network.</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="bridge-input">Bridges</label>
|
||||
<input type="text" id="bridge-input" placeholder="off (drivers over the radio)" maxlength="400" autocomplete="off">
|
||||
<small>Comma-separated: USB boards (<code>/dev/ttyACM1</code>) and <code>host:port</code> (UDP, e.g. led-simulator on port 8766). While any are set, the controller sends its frames to them instead of the radio. Applied on the next restart; the list above applies at once.</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Static IPs</label>
|
||||
<small>Tried in order each time the Ethernet link comes up; the first whose gateway answers is used. If none does, or the list is empty, DHCP is used. With no DHCP server, as on a cable straight to a PC, the controller is at <code>192.168.4.1</code>; give the PC a static IP such as <code>192.168.4.2</code>.</small>
|
||||
@@ -1286,29 +1280,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="settings-panel-led-tool" class="settings-tab-panel" data-settings-panel="led-tool" role="tabpanel" aria-labelledby="settings-tab-led-tool" hidden>
|
||||
<iframe id="led-tool-iframe" title="LED device settings editor" src="about:blank" class="settings-led-tool-iframe"></iframe>
|
||||
</div>
|
||||
|
||||
<div class="modal-actions">
|
||||
<button class="btn btn-secondary" id="settings-close-btn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Outputs Modal (network pixel fixtures: DDP, Art-Net, sACN; USB-DMX is stored only) -->
|
||||
<div id="outputs-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<h2>Outputs</h2>
|
||||
<p class="muted-text">Network pixel fixtures (DDP, Art-Net, sACN). Test sends a red, green, blue and white pattern; zones do not render to outputs on this controller.</p>
|
||||
<div id="outputs-list-modal" class="profiles-list"></div>
|
||||
<div class="modal-actions">
|
||||
<button type="button" class="btn btn-primary" id="output-add-btn">Add output</button>
|
||||
<button type="button" class="btn btn-secondary" id="outputs-close-btn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="edit-output-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<h2 id="edit-output-title">Output</h2>
|
||||
@@ -1378,11 +1353,136 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="edit-bridge-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<div class="modal-head">
|
||||
<h2 id="edit-bridge-title">Edit bridge</h2>
|
||||
<div class="modal-top-actions">
|
||||
<button type="submit" form="edit-bridge-form" class="btn btn-primary" id="edit-bridge-save-btn">Save</button>
|
||||
<button type="button" class="btn btn-secondary" id="edit-bridge-close-btn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
<form id="edit-bridge-form" novalidate>
|
||||
<label for="edit-bridge-type">Type</label>
|
||||
<select id="edit-bridge-type" class="bridge-type-select">
|
||||
<option value="usb">USB bridge board</option>
|
||||
<option value="network">Network bridge board (UDP)</option>
|
||||
<option value="dmx">DMX bridge (Art-Net, sACN, USB-DMX)</option>
|
||||
<option value="browser" hidden>Rig page of this controller</option>
|
||||
</select>
|
||||
<small id="edit-bridge-type-help" class="muted-text" style="display:block;margin-top:0.35rem;"></small>
|
||||
<label for="edit-bridge-name">Name</label>
|
||||
<input type="text" id="edit-bridge-name" placeholder="e.g. Stage left" maxlength="40" autocomplete="off">
|
||||
<div id="edit-bridge-addr-field">
|
||||
<label for="edit-bridge-addr">Address</label>
|
||||
<input type="text" id="edit-bridge-addr" list="bridge-ports" placeholder="/dev/ttyACM1" maxlength="79" autocomplete="off">
|
||||
</div>
|
||||
<div id="edit-bridge-channel-field">
|
||||
<label for="edit-bridge-channel">Radio channel (1 to 13)</label>
|
||||
<input type="number" id="edit-bridge-channel" min="1" max="13" placeholder="leave as it is">
|
||||
</div>
|
||||
<div id="edit-bridge-dmx-field" hidden>
|
||||
<div id="edit-bridge-dmx-universes"></div>
|
||||
<div class="profiles-actions" style="margin-top:0.75rem;">
|
||||
<button type="button" class="btn btn-secondary" id="edit-bridge-dmx-add-universe">Add universe</button>
|
||||
</div>
|
||||
<small class="muted-text" style="display:block;margin-top:0.75rem;">Each universe's 512 channels go to each of its outputs 40 times a second. Each fixture is a driver of its own, listed under Devices; one without a MAC gets one when the bridge is saved.</small>
|
||||
</div>
|
||||
<small id="edit-bridge-status" class="muted-text" style="display:block;margin-top:0.75rem;"></small>
|
||||
<p id="edit-bridge-error" class="engine-error" hidden></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dmx-defs-modal" class="modal">
|
||||
<div class="modal-content dmx-modal-content">
|
||||
<div class="modal-head">
|
||||
<h2>DMX definitions</h2>
|
||||
<div class="modal-top-actions">
|
||||
<button type="button" class="btn btn-primary" id="dmx-defs-new-btn">New</button>
|
||||
<button type="button" class="btn btn-secondary" id="dmx-defs-close-btn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dmx-defs-list" class="profiles-list"></div>
|
||||
<form id="dmx-def-form" hidden novalidate>
|
||||
<h3 id="dmx-def-title" style="margin-top:1rem;">Definition</h3>
|
||||
<label for="dmx-def-name">Name</label>
|
||||
<input type="text" id="dmx-def-name" maxlength="63" autocomplete="off">
|
||||
<div class="dmx-def-meta">
|
||||
<div><label for="dmx-def-manufacturer">Manufacturer</label><input type="text" id="dmx-def-manufacturer" maxlength="63" autocomplete="off"></div>
|
||||
<div><label for="dmx-def-model">Model</label><input type="text" id="dmx-def-model" maxlength="63" autocomplete="off"></div>
|
||||
<div><label for="dmx-def-mode">Mode</label><input type="text" id="dmx-def-mode" maxlength="63" autocomplete="off"></div>
|
||||
</div>
|
||||
<label for="dmx-def-channels">Channels, one per line, in order</label>
|
||||
<textarea id="dmx-def-channels" rows="8" class="dmx-textarea" spellcheck="false"></textarea>
|
||||
<small class="muted-text">Red, Green, Blue and White (or "Red 1", "Red 2"… for each pixel) take the pattern's colours. Dimmer and Intensity are set full, Strobe and Shutter open. Any other channel holds its default.</small>
|
||||
<label for="dmx-def-defaults">Defaults, one "Channel = value" (0 to 255) per line</label>
|
||||
<textarea id="dmx-def-defaults" rows="3" class="dmx-textarea" spellcheck="false" placeholder="Tilt = 127"></textarea>
|
||||
<div class="profiles-actions" style="margin-top:0.75rem;">
|
||||
<button type="submit" class="btn btn-primary">Save definition</button>
|
||||
<button type="button" class="btn btn-danger" id="dmx-def-delete-btn">Delete</button>
|
||||
</div>
|
||||
<p id="dmx-def-error" class="engine-error" hidden></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="edit-user-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<div class="modal-head">
|
||||
<h2 id="edit-user-title">Edit user</h2>
|
||||
<div class="modal-top-actions">
|
||||
<button type="submit" form="edit-user-form" class="btn btn-primary" id="edit-user-save-btn">Save</button>
|
||||
<button type="button" class="btn btn-secondary" id="edit-user-close-btn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
<form id="edit-user-form">
|
||||
<label for="edit-user-name">Username</label>
|
||||
<input type="text" id="edit-user-name" maxlength="32" autocomplete="off" required>
|
||||
<small class="muted-text">1 to 32 letters, digits, _ . -</small>
|
||||
<label for="edit-user-role" style="margin-top:0.75rem;display:block;">Role</label>
|
||||
<select id="edit-user-role"></select>
|
||||
<label for="edit-user-pass" style="margin-top:0.75rem;display:block;">Password</label>
|
||||
<input type="password" id="edit-user-pass" maxlength="128" autocomplete="new-password">
|
||||
<small id="edit-user-pass-help" class="muted-text">8 to 128 characters.</small>
|
||||
<p id="edit-user-error" class="engine-error" hidden></p>
|
||||
<div class="profiles-actions" style="margin-top:1rem;">
|
||||
<button type="button" class="btn btn-danger" id="edit-user-delete-btn">Delete user</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="edit-role-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<div class="modal-head">
|
||||
<h2 id="edit-role-title">Edit role</h2>
|
||||
<div class="modal-top-actions">
|
||||
<button type="submit" form="edit-role-form" class="btn btn-primary" id="edit-role-save-btn">Save</button>
|
||||
<button type="button" class="btn btn-secondary" id="edit-role-close-btn">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
<form id="edit-role-form">
|
||||
<label for="edit-role-name">Role name</label>
|
||||
<input type="text" id="edit-role-name" maxlength="32" autocomplete="off" required>
|
||||
<label class="zone-devices-label">Permissions</label>
|
||||
<small class="muted-text">none: hidden · view: read · control: play, stop, brightness, identify · edit: change anything.</small>
|
||||
<div id="edit-role-perms" class="profiles-list" style="margin-top:0.5rem;"></div>
|
||||
<p id="edit-role-error" class="engine-error" hidden></p>
|
||||
<div class="profiles-actions" style="margin-top:1rem;">
|
||||
<button type="button" class="btn btn-danger" id="edit-role-delete-btn">Delete role</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/ui_confirm.js"></script>
|
||||
<script src="/static/auth.js"></script>
|
||||
<script src="/static/fetch_cache.js"></script>
|
||||
<script src="/static/zone-devices-panel.js"></script>
|
||||
<script src="/static/groups.js"></script>
|
||||
<script src="/static/zones.js"></script>
|
||||
<script src="/static/dmx_bridge.js"></script>
|
||||
<script src="/static/help.js"></script>
|
||||
<script src="/static/color_palette.js"></script>
|
||||
<script src="/static/bundle_io.js"></script>
|
||||
|
||||
Reference in new issue
Block a user