|  | @@ -1,28 +1,16 @@
 | 
	
		
			
				|  |  |  <!DOCTYPE html>
 | 
	
		
			
				|  |  |  <html>
 | 
	
		
			
				|  |  |    <head>
 | 
	
		
			
				|  |  | -    <link rel="stylesheet" href="../com/max80.css" />
 | 
	
		
			
				|  |  | +    <link rel="stylesheet" href="max80.css" />
 | 
	
		
			
				|  |  |      <title>MAX80: Configuration</title>
 | 
	
		
			
				|  |  | -  <script src="../com/max80.js"></script>
 | 
	
		
			
				|  |  | -  <script>
 | 
	
		
			
				|  |  | -    function addextrainfo(event) {
 | 
	
		
			
				|  |  | -	var form = event.currentTarget;
 | 
	
		
			
				|  |  | -	var elem = form.elements;
 | 
	
		
			
				|  |  | -	var hosttime = elem["hosttime"];
 | 
	
		
			
				|  |  | -	var hostzone = elem["hostzone"];
 | 
	
		
			
				|  |  | -	
 | 
	
		
			
				|  |  | -	var now = new Date();
 | 
	
		
			
				|  |  | -	hosttime.value = now.valueOf();
 | 
	
		
			
				|  |  | -	hostzone.value = -60 * now.getTimezoneOffset();
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -  </script>
 | 
	
		
			
				|  |  | +  <script src="max80.js"></script>
 | 
	
		
			
				|  |  |    </head>
 | 
	
		
			
				|  |  |    <body>
 | 
	
		
			
				|  |  |      <script>inc("head.html")</script>
 | 
	
		
			
				|  |  | -    <h1>Configuration</h1>
 | 
	
		
			
				|  |  | -    <form id="config" action="../sys/setconfig" enctype="text/plain"
 | 
	
		
			
				|  |  | +    <h1 class="config">Configuration</h1>
 | 
	
		
			
				|  |  | +    <form id="setconfig" action="sys/setconfig" enctype="text/plain"
 | 
	
		
			
				|  |  |  	  method="post" onsubmit="addextrainfo(event)">
 | 
	
		
			
				|  |  | -      <fieldset>
 | 
	
		
			
				|  |  | +      <fieldset class="network">
 | 
	
		
			
				|  |  |  	<legend>Network</legend>
 | 
	
		
			
				|  |  |  	<div>
 | 
	
		
			
				|  |  |  	  <label for="wifi.ssid">Network name (SSID):</label>
 | 
	
	
		
			
				|  | @@ -34,7 +22,7 @@
 | 
	
		
			
				|  |  |  	  <button type="button" class="show" onclick="showpwd('wifi.psk',this)"><span class="show">show</span><span class="hide">hide</span></button>
 | 
	
		
			
				|  |  |  	</div>
 | 
	
		
			
				|  |  |        </fieldset>
 | 
	
		
			
				|  |  | -      <fieldset>
 | 
	
		
			
				|  |  | +      <fieldset class="datetime">
 | 
	
		
			
				|  |  |  	<legend>Date and Time</legend>
 | 
	
		
			
				|  |  |  	<div>
 | 
	
		
			
				|  |  |  	  <label for="TZ">Timezone configuration:</label>
 | 
	
	
		
			
				|  | @@ -45,7 +33,7 @@
 | 
	
		
			
				|  |  |  	  <input type="checkbox" id="sntp.enabled" name="sntp.enabled" />
 | 
	
		
			
				|  |  |  	</div>
 | 
	
		
			
				|  |  |  	<div>
 | 
	
		
			
				|  |  | -	  <label for="sntp.enabled">NTP server:</label>
 | 
	
		
			
				|  |  | +	  <label for="sntp.server">NTP server:</label>
 | 
	
		
			
				|  |  |  	  <input type="text" id="sntp.server" name="sntp.server" />
 | 
	
		
			
				|  |  |  	</div>
 | 
	
		
			
				|  |  |  	<div>
 | 
	
	
		
			
				|  | @@ -53,8 +41,9 @@
 | 
	
		
			
				|  |  |  	  <input type="checkbox" id="ip4.dhcp.nosntp" name="ip4.dhcp.nosntp" />
 | 
	
		
			
				|  |  |  	</div>
 | 
	
		
			
				|  |  |        </fieldset>
 | 
	
		
			
				|  |  | -      <button type="submit" disabled>Update configuration</button>
 | 
	
		
			
				|  |  | +      <button class="submit" type="submit" disabled>Update configuration</button>
 | 
	
		
			
				|  |  |      </form>
 | 
	
		
			
				|  |  | -    <script>loadform('config','../sys/getconfig')</script>
 | 
	
		
			
				|  |  | +    <script>loadform('setconfig','sys/getconfig')</script>
 | 
	
		
			
				|  |  | +    <script>translate()</script>
 | 
	
		
			
				|  |  |    </body>
 | 
	
		
			
				|  |  |  </html>
 |