Using Checkboxes in Albatross
Revision as of 18:18, 9 March 2008 by PeterHarding (talk | contribs)
Albatross Checkboxes
In the html:
<al-input type="checkbox" name="CurrentCB">
In the Python:
in page_display()...
if ctx.locals.person.fields.Current == 1:
ctx.locals.CurrentCB = 'on'
else:
ctx.locals.CurrentCB = 'off'
In page_Process()...
if ctx.locals.CurrentCB == 'on':
Current = 1
else:
Current = 0