Using Checkboxes in Albatross

From PeformIQ Upgrade
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....)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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'