lumini_p30_control/firmware/html/config_template.html

71 lines
3.1 KiB
HTML
Raw Normal View History

<div id="tab-config" class="">
2023-05-01 19:00:00 +02:00
<form class="pure-form pure-form-aligned" action="/" method="post">
<br>
<label for="startup">
<strong>Light initialization</strong>
</label>
2023-05-01 19:00:00 +02:00
<div class="pure-control-group">
<label for="startup">
<strong>Startup</strong>
</label>
<select onchange="this.form.submit()" id="startup" name="startup">
<option {{STARTUP_SELECTED_LS_0}} value="0">Last state</option>
<option {{STARTUP_SELECTED_ON_1}} value="1">On</option>
<option {{STARTUP_SELECTED_OFF_2}} value="2">Off</option>
</select>
</div>
<div class="pure-control-group">
<label for="scene">
<strong>Scene</strong>
</label>
<select onchange="this.form.submit()" id="scene" name="scene">
<option {{SCENE_SELECTED_RELAX_0}} value="0">Relax</option>
<option {{SCENE_SELECTED_BRIGHT_1}} value="1">Bright</option>
<option {{SCENE_SELECTED_NIGHT_2}} value="2">Night</option>
</select>
</div>
<br>
<label for="startup">
<strong>Wifi</strong>
</label>
2023-05-01 19:00:00 +02:00
<div class="pure-control-group">
<label for="ip">SSID</label>
<input id="ssid" name="ssid" type="text" value="{{WIFI_SSID}}">
</div>
<div class="pure-control-group">
<label for="wpw">Passphrase</label>
<input id="wpw" name="wpw" type="text" placeholder="1234password">
</div>
<br>
<label for="startup">
<strong>Network</strong>
</label>
2023-05-01 19:00:00 +02:00
<div class="pure-control-group">
<label for="dip">
<strong>Dynamic-IP</strong>
</label>
<a class="pure-button {{DIP_LINK_ON_PRIMARY}}" href="/?dip=true">ON</a>
<a class="pure-button {{DIP_LINK_OFF_PRIMARY}}" href="/?dip=false">OFF</a>
</div>
<div class="pure-control-group">
<label for="ip">IP</label>
<input id="ip" name="ip" type="text" value="{{WIFI_CFG_IP}}">
2023-05-01 19:00:00 +02:00
</div>
<div class="pure-control-group">
<label for="gwip">Gateway IP</label>
<input id="gwip" name="gwip" type="text" value="{{WIFI_CFG_GW}}">
2023-05-01 19:00:00 +02:00
</div>
<div class="pure-control-group">
2023-05-16 11:58:21 +02:00
<label for="netmask">Netmask</label>
<input id="netmask" name="netmas" type="text" value="{{WIFI_CFG_NM}}">
2023-05-01 19:00:00 +02:00
</div>
<div class="pure-control-group">
2023-05-16 11:58:21 +02:00
<label for="dns">DNS</label>
<input id="netmask" name="dns" type="text" value="{{WIFI_CFG_DNS}}">
2023-05-01 19:00:00 +02:00
</div>
<div class="pure-controls">
2023-05-16 11:58:21 +02:00
<button type="dns" class="pure-button pure-button-primary">Save</button>
2023-05-01 19:00:00 +02:00
</div>
</form>
</div><!-- end of config div -->