<%#
LuCI - Lua Configuration Interface
Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

-%>
<%                                                                                               
        if luci.http.formvalue("status") == "1" then                                             
        local model=luci.sys.exec("cat /tmp/sysinfo/model") or "NA"                              
        local rv = {                                                                             
        model=model                                                                            
        }                                                                                                                                                               
        luci.http.prepare_content("application/json")                                                                           
        luci.http.write_json(rv)
        return      
end                                                                                                                                                                     
-%> 

<%+header%>

<script type="text/javascript" src="<%=resource%>/cbi.js"></script>    
<script type="text/javascript">//<![CDATA[                                                       
        XHR.poll(10, '<%=REQUEST_URI%>', { status: 1 },                                           
                function(x, info)                                                                
                {                                                                                
                        if (e = document.getElementById('model'))                            
                                e.innerHTML = info.model;                                       
                                                                                                                                                                        
                }                                                                                                                                                       
        );                                                                                                                                                              
//]]></script>
<br>
<p>Thank you for using Lantronix <t id="model">-</t> Router.</p>

<p>Please refer to the label on your router or the status page to confirm your model. </p>

<p> </p>

<p>Quick Setup will guide you through the basic configurations of the Router. Apart from the interface configurations mentioned in the below quick setup tab, all other parameters will be set at factory. Please refer to the user manual for a list of factory default configuration.</p>

<p> </p>

<p>For advanced users, please use the Network tab to configure the device.</p>

<p>  </p>
<div align="left">
<input type="button" class="cbi-button cbi-button-apply" style="width:100px" onclick="location.href='<%=luci.dispatcher.build_url("admin/quicksetup/setup")%>'" title="<%:Go to next page%>" value="<%:Quick Setup%>" />
<input type="button" class="cbi-button cbi-button-apply" style="width:100px" onclick="location.href='<%=luci.dispatcher.build_url("admin/status")%>'" title="<%:status overview%>" value="<%:Status%>" />
</div>
<%+footer%>
