<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> %if message: ${render_msg( message, status )} %endif <%def name="render_grid( grid_index, grid_name, fields_dict )"> %if grid_name:

${grid_name}

%endif
%for index, field in fields_dict.items(): %endfor %for index, field in fields_dict.items(): %endfor %for index, field in fields_dict.items(): %endfor %for index, field in fields_dict.items(): %endfor
${field['label']}
${field['helptext']}
${field['required']}
##
${field['type']}
##
${field['required']}
Type:
${field['type']}
%if field['type'] == 'SelectField':
Options:
%for option in field['selectlist']:
${option}
%endfor %endif
%if form_definition.desc:
${form_definition.name} - ${form_definition.desc} (${form_definition.type})
Edit
%else:
${form_definition.name} (${form_definition.type})
Edit
%endif
%if form_definition.type == trans.app.model.FormDefinition.types.SAMPLE: %if not len(form_definition.layout): ${render_grid( 0, '', form_definition.fields_of_grid( None ) )} %else: %for grid_index, grid_name in enumerate(form_definition.layout): ${render_grid( grid_index, grid_name, form_definition.fields_of_grid( grid_index ) )} %endfor %endif %else: %for index, field in enumerate(form_definition.fields):
%if field['helptext']:
${field['helptext']}
%endif
${field['required']}
Type: ${field['type']} %if field['type'] == 'SelectField':
Options:
%for option in field['selectlist']:
${option}
%endfor
%endif
%endfor %endif