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