fix bug
[networtool-web.git] / views / main.tpl
index c0d32f1..2f01370 100644 (file)
@@ -10,16 +10,18 @@ IP Addr Info: <br>
 </textarea>
 <form action="/main" method="post">
 <br>
-Current Mode {{mode}}
-<input type="checkbox" name=
-    Scan and Select the WiFI to connect to:<br>
+Current Mode {{mode}} <br>
+Scan and Select the WiFI to connect to:<br>
     <select name='select'>
         % for ssid in ssids:
-        % if ssid == usedSsid:
-            <option value={{ssid}} selected>{{ssid}}</option>
-        % else:
-            <option value={{ssid}}>{{ssid}}</option>
+            % if ssid == usedSsid:
+                <option value={{ssid}} selected>{{ssid}}</option>
+            % else:
+                <option value={{ssid}}>{{ssid}}</option>
+            % end
         % end
+        % if mode == 'AP':
+            <option value="----" selected>{{ssid}}</option>
         % end
     </select>
     <input name="action" value="Scan" type="submit"/>