From 405367fd75bcf8415ab77370086f2a81f9f11701 Mon Sep 17 00:00:00 2001 From: kakwa Date: Sun, 5 Jul 2015 17:50:42 +0200 Subject: [PATCH] various fixes in html + unit tests on html --- resources/static/css/custom.css | 4 ++++ resources/templates/adduser.tmpl | 2 +- resources/templates/form.tmpl | 18 +++++++++--------- resources/templates/modify.tmpl | 2 +- resources/templates/navbar.tmpl | 2 +- resources/templates/searchadmin.tmpl | 16 ++++------------ resources/templates/searchuser.tmpl | 4 ++-- tests/test_LdapCherry.py | 14 ++++++++++---- 8 files changed, 32 insertions(+), 30 deletions(-) diff --git a/resources/static/css/custom.css b/resources/static/css/custom.css index 2b9c49d..49372d6 100644 --- a/resources/static/css/custom.css +++ b/resources/static/css/custom.css @@ -16,6 +16,10 @@ height: 34px; } +.btn.pad { + padding: inherit; +} + .btn.blue { background-color: hsl(201, 100%, 30%) !important; background-repeat: repeat-x; diff --git a/resources/templates/adduser.tmpl b/resources/templates/adduser.tmpl index 21af83f..dbadbe1 100644 --- a/resources/templates/adduser.tmpl +++ b/resources/templates/adduser.tmpl @@ -18,7 +18,7 @@
+ Add User
diff --git a/resources/templates/form.tmpl b/resources/templates/form.tmpl index 9c862ca..93e4463 100644 --- a/resources/templates/form.tmpl +++ b/resources/templates/form.tmpl @@ -36,19 +36,19 @@ for a in sorted(attributes.keys(), key=lambda attr: attributes[attr]['weight']): value2 = '' %> - ${attr['display_name']} + ${attr['display_name']} % if modify and a == keyattr: - - ${tmp} + + ${tmp} % elif attr['type'] == 'string': - + % elif attr['type'] == 'email': - + % elif attr['type'] == 'int': - + % elif attr['type'] == 'fix': - - ${attr['value']} + + ${attr['value']} % elif attr['type'] == 'stringlist': % elif attr['type'] == 'password': - Retype ${attr['display_name']} + Retype ${attr['display_name']} % endif diff --git a/resources/templates/modify.tmpl b/resources/templates/modify.tmpl index e6868b9..81a6514 100644 --- a/resources/templates/modify.tmpl +++ b/resources/templates/modify.tmpl @@ -58,7 +58,7 @@
+ Modify User
diff --git a/resources/templates/navbar.tmpl b/resources/templates/navbar.tmpl index 806b48a..167a3b2 100644 --- a/resources/templates/navbar.tmpl +++ b/resources/templates/navbar.tmpl @@ -14,7 +14,7 @@