mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-05 07:54:18 +01:00
* migrate to esbuild from terser, since now js source needs bundling * (temporary?) hijack inline-source object handling to inline html files * get rid of legacy removeIf comments in source in favour of explicit removal either through bundling tree-shaking and / or manual module-* class element removal w/ jsdom * get rid of multi-layered custom checkboxes in favour of `appearance: none` directly styling the `input` elem also removes scripting part that was supposed to adjust for=... labels * update to html-minifier-terser, up-to-date html-minifier fork * update to iro.js 5.5.x, using npm to manage dependencies * build script can now update resulting html output (called after bundling stage, before minification)
62 lines
2.8 KiB
HTML
62 lines
2.8 KiB
HTML
<template id="template-relay-control">
|
|
<div class="pure-control-group">
|
|
<label><span data-key="relayName"></span></label>
|
|
<input class="checkbox-toggle" name="relay" type="checkbox">
|
|
</div>
|
|
</template>
|
|
|
|
<template id="template-relay-config">
|
|
<div class="pure-form pure-form-aligned">
|
|
<fieldset>
|
|
<legend><span data-key="relayName"></span> (<span data-key="relayProv"></span>)</legend>
|
|
<div class="pure-control-group">
|
|
<label>Boot mode</label>
|
|
<select class="pure-input-2-3" name="relayBoot">
|
|
<option value="off">Always OFF</option>
|
|
<option value="on">Always ON</option>
|
|
<option value="same">Same as before</option>
|
|
<option value="toggle">Toggle before</option>
|
|
<option value="locked-off">Locked OFF</option>
|
|
<option value="locked-on">Locked ON</option>
|
|
</select>
|
|
</div>
|
|
<div class="pure-control-group">
|
|
<label>Pulse mode</label>
|
|
<select class="pure-input-2-3" name="relayPulse">
|
|
<option value="none">Don't pulse</option>
|
|
<option value="off">Normally OFF</option>
|
|
<option value="on">Normally ON</option>
|
|
</select>
|
|
</div>
|
|
<div class="pure-control-group">
|
|
<label>Pulse time (s)</label>
|
|
<input class="pure-input-2-3" name="relayTime" type="text">
|
|
</div>
|
|
<div class="pure-control-group module module-mqtt">
|
|
<label>MQTT topic subscription</label>
|
|
<input class="pure-input-2-3" name="relayTopicSub" type="text" data-action="reconnect">
|
|
</div>
|
|
<div class="pure-control-group module module-mqtt">
|
|
<label>MQTT topic publish</label>
|
|
<input class="pure-input-2-3" name="relayTopicPub" type="text" data-action="reconnect">
|
|
</div>
|
|
<div class="pure-control-group module module-mqtt">
|
|
<label>MQTT topic mode</label>
|
|
<select class="pure-input-2-3" name="relayTopicMode">
|
|
<option value="normal">Normal</option>
|
|
<option value="inverse">Inverse</option>
|
|
</select>
|
|
</div>
|
|
<div class="pure-control-group module module-mqtt">
|
|
<label>On MQTT disconnect</label>
|
|
<select class="pure-input-2-3" name="relayMqttDisc">
|
|
<option value="unknown">Do nothing</option>
|
|
<option value="off">Turn OFF</option>
|
|
<option value="on">Turn ON</option>
|
|
<option value="toggle">Toggle</option>
|
|
</select>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</template>
|