add templates for HTML pages
parent
ad5adff871
commit
d133fe388d
|
|
@ -0,0 +1,44 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>WeatherSensor Config</title>
|
||||
<style>
|
||||
label { display: inline-block; width: 165px; }
|
||||
h1 { text-align: center; }
|
||||
div { margin: 10px 0px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style='margin: 0 auto; width: 400px;'>
|
||||
<h1>Weather Sensor</h1>
|
||||
<form id='SensorConfig' action='config' method='POST'>
|
||||
<fieldset>
|
||||
<legend>Config Details</legend>
|
||||
<div>
|
||||
<label for='ssid'>WLAN SSID:</label>
|
||||
<input name='ssid' type='text' placeholder='WeatherSensorWiFi' value='' required autofocus>
|
||||
</div>
|
||||
<div>
|
||||
<label for='pw'>WLAN Password:</label>
|
||||
<input name='pw' type='text' placeholder='123456' required>
|
||||
</div>
|
||||
<div>
|
||||
<label for='dev'>Device Name:</label>
|
||||
<input name='dev' type='text' placeholder='S000' required>
|
||||
</div>
|
||||
<div>
|
||||
<input name='config' type='submit' value='Save'>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<form method='POST' action='update' enctype='multipart/form-data'>
|
||||
<fieldset disabled='disabled'>
|
||||
<legend>Firmware Update</legend>
|
||||
<div>
|
||||
<input type='file' name='update'>
|
||||
<input type='submit' value='Update'>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>WeatherSensor Config</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div style='margin: 0 auto; width: 400px; text-align: center;background: #0F0; border: 1px solid #0F0;'>
|
||||
<h1>Weather Sensor</h1>
|
||||
<div style='background: #FFF;'>
|
||||
OK
|
||||
</div>
|
||||
<div>
|
||||
Disable config mode and reboot device!
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue