fde481a22abc956046f5acb07d7ef01070369a7a
[networtool-web.git] / views / main.tpl
1 <html>
2 <body>
3
4 <div id='network'>
5 <h3>Network Configure</h3><hr>
6 % lines = len(ipaddr.split('\n'))
7 IP Addr Info: <br>
8 <textarea readonly rows={{lines}} cols="80">
9 {{ipaddr}}
10 </textarea>
11 <form action="/main" method="post">
12 <br>
13 Current Mode {{mode}} <br>
14 Scan and Select the WiFI to connect to:<br>
15     <select name='select'>
16         % for ssid in ssids:
17         % if mode == 'AP':
18             <option value="----" selected>{{ssid}}</option>
19         % end
20         % if ssid == usedSsid:
21             <option value={{ssid}} selected>{{ssid}}</option>
22         % else:
23             <option value={{ssid}}>{{ssid}}</option>
24         % end
25         % end
26     </select>
27     <input name="action" value="Scan" type="submit"/>
28     password: <input name="password" type="password" />
29     <input name="action" value="Connect" type="submit"/>
30     <br>
31     <input name="action" value="Reset" type="submit"/>
32 </form>
33 </div>
34
35 </body>
36 </html>