% for a in sorted(attributes.keys(), key=lambda attr: attributes[attr]['weight']): <% attr = attributes[a] %>
<% if not values is None and a in values: value = ' value="'+ values[a] + '"' value2 = '' else: value = '' value2 = '' %> ${attr['display_name']} % if attr['type'] == 'string': % elif attr['type'] == 'email': % elif attr['type'] == 'int': % elif attr['type'] == 'fix': ${attr['value']} % elif attr['type'] == 'stringlist': % elif attr['type'] == 'password': Retype ${attr['display_name']} % endif
% endfor