$def with (form)
$if not form.valid:

Error(s):

$for input in form.inputs: $ nargs = input.nargs $if isinstance(nargs, basestring) and nargs.isdigit(): $ nargs = int(nargs) $ c = (input.attrs.get('class') if input.attrs.get('class') else 'base') $ option_checkbox = False $if input.disposition == "optional": $if nargs == 0: $ nargs = 1 $else: $ option_checkbox = True $if input.choices: $ nargs = 1 $if type(nargs) == int: $ input_fixed = True $ input_count = nargs $elif nargs == "+": $ input_fixed = False $ input_min = 1 $ input_max = "" $elif nargs == "*": $ input_fixed = False $ input_min = 0 $ input_max = "" $elif nargs == "?": $ input_fixed = False $ input_min = 0 $ input_max = 1 $if input.help: $if option_checkbox: $if input.help: $if option_checkbox:
$else: $if option_checkbox: $input.description $else: $if input_fixed: $for i in range(input_count): $:input.render() $else:
$else: $input.help