% for a in sorted(attributes.keys(), key=lambda attr: attributes[attr]['weight']): <% attr = attributes[a] %>
${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