Difference between revisions of "Using Checkboxes in Albatross"

From PeformIQ Wiki
Jump to navigation Jump to search
(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....)
(No difference)

Revision as of 14:36, 9 March 2008

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'