Fix url params for checkboxes when re-opening an input form
Thanks to Rotzbua for pointing the issue out!
This commit is contained in:
parent
4916118b8b
commit
46175dde11
|
@ -196,6 +196,8 @@ class BoolArg:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def html(self, name, default):
|
def html(self, name, default):
|
||||||
|
if isinstance(default, (str)):
|
||||||
|
default = self(default)
|
||||||
return """<input name="%s" type="hidden" value="0">
|
return """<input name="%s" type="hidden" value="0">
|
||||||
<input name="%s" type="checkbox" value="1"%s>""" % \
|
<input name="%s" type="checkbox" value="1"%s>""" % \
|
||||||
(name, name, ' checked="checked"' if default else "")
|
(name, name, ' checked="checked"' if default else "")
|
||||||
|
|
Loading…
Reference in New Issue