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

View file

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