added missing </form>

This commit is contained in:
age 2007-01-20 16:08:33 +00:00
parent 5a476948cd
commit 1714b4ded9
2 changed files with 8 additions and 3 deletions

View file

@ -23,6 +23,7 @@
<input type="hidden" tabindex="5" name="store" value="set_ip" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.network.Button.NetworkIP) ?></button>
</p>
</form>
</fieldset>
<fieldset>
@ -41,5 +42,6 @@
<input type="hidden" tabindex="5" name="store" value="set_gw" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.network.Button.NetworkGW) ?></button>
</p>
</form>
</form>
</fieldset>

View file

@ -49,8 +49,10 @@ class network(cryptobox.plugins.base.CryptoBoxPlugin):
if redirected == "1":
self.cbox.log.debug("network plugin: redirected")
return "form_network"
## request for IP change?
if store is None:
pass
## request for IP change?
elif store == "set_ip":
self.cbox.log.debug("network plugin: changing IP")
try:
@ -80,8 +82,9 @@ class network(cryptobox.plugins.base.CryptoBoxPlugin):
self.hdf["Data.Warning"] = "Plugins.network.InvalidIP"
self.__prepare_form_data()
return "form_network"
## request for default gateway change?
elif store == "set_gw":
## TODO
## TODO: route add default gw ...
pass
else:
self.cbox.log.debug("network plugin: show form")