From 1dd3f2a73d9d23eb7868384ee34ca55b2a124b9a Mon Sep 17 00:00:00 2001 From: kakwa Date: Sun, 31 May 2015 22:38:13 +0200 Subject: [PATCH] implementing forms to add user --- resources/templates/adduser.tmpl | 18 ++++++++++++++++++ resources/templates/form.tmpl | 23 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 resources/templates/adduser.tmpl create mode 100644 resources/templates/form.tmpl diff --git a/resources/templates/adduser.tmpl b/resources/templates/adduser.tmpl new file mode 100644 index 0000000..a33f808 --- /dev/null +++ b/resources/templates/adduser.tmpl @@ -0,0 +1,18 @@ +<%inherit file="navbar.tmpl"/> +<%block name="core"> +
+
+
+ +
+
+
+ diff --git a/resources/templates/form.tmpl b/resources/templates/form.tmpl new file mode 100644 index 0000000..bc9157b --- /dev/null +++ b/resources/templates/form.tmpl @@ -0,0 +1,23 @@ +% for a in attributes: +<% attr = attributes[a] %> +
+
+ ${attr['display_name']} + % if attr['type'] == 'string': + + % elif attr['type'] == 'email': + + % elif attr['type'] == 'int': + + % elif attr['type'] == 'fix': + + % elif attr['type'] == 'stringlist': + + % elif attr['type'] == 'password': + + Retype ${attr['display_name']} + + % endif +
+
+% endfor