From 6f796a8cc13a521f47eb97561647af89a1b12cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Fri, 9 May 2014 19:14:48 -0400 Subject: [PATCH] Improve forms --- assets/css/app.css | 37 +++++++++++++++++------ templates/task_edit.php | 44 ++++++++++++++++----------- templates/task_new.php | 45 +++++++++++++++------------- templates/user_edit.php | 64 ++++++++++++++++++++++------------------ templates/user_login.php | 2 +- templates/user_new.php | 34 +++++++++++++-------- 6 files changed, 136 insertions(+), 90 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 44abace36..1d2d4be3a 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -110,11 +110,11 @@ td li { /* forms */ form { - padding-top: 5px; - padding-bottom: 5px; - padding-left: 15px; + padding: 10px; margin-bottom: 20px; - border-left: 2px dotted #ddd; + background: #fcfcfc; + border: 1px solid #eee; + border-radius: 5px; } label { @@ -133,11 +133,13 @@ input[type="email"], input[type="tel"], input[type="password"], input[type="text"] { + color: #888; border: 1px solid #ccc; - padding: 3px; - line-height: 15px; width: 400px; - font-size: 99%; + font-size: 1.0em; + height: 25px; + padding-bottom: 0; + font-family: sans-serif; margin-top: 5px; -webkit-appearance: none; appearance: none; @@ -162,10 +164,10 @@ input[type="number"] { textarea { border: 1px solid #ccc; - padding: 3px; width: 400px; height: 200px; - font-size: 99%; + font-size: 1.0em; + font-family: sans-serif; } ::-webkit-input-placeholder { @@ -184,6 +186,7 @@ textarea { } .form-actions { + clear: both; margin-top: 20px; } @@ -234,6 +237,22 @@ input.form-date { margin-bottom: 20px; } +.form-column { + float: left; + margin-bottom: 60px; + padding-right: 30px; + padding-left: 30px; +} + +.form-column:first-child { + padding-left: 0; +} + +.form-login { + padding-left: 20px; + width: 430px; +} + /* alerts */ .alert { padding: 8px 35px 8px 14px; diff --git a/templates/task_edit.php b/templates/task_edit.php index 9fe0418fc..0c19db38a 100644 --- a/templates/task_edit.php +++ b/templates/task_edit.php @@ -5,31 +5,39 @@
- - +
- -
+ +
- -
+ +
+
- -
+
- -
+
- -
+ + - -
-
+ +
- -
-
+ +
+ + +
+ + +
+ + +
+
+ +
diff --git a/templates/task_new.php b/templates/task_new.php index f5797cdf4..cf320e727 100644 --- a/templates/task_new.php +++ b/templates/task_new.php @@ -5,34 +5,39 @@
- -
+
+ +
- + +
+
- -
+ + + +
- -
+
- -
+ - -
+ +
- -
-
+ +
- -
-
+ +
- - - + +
+ + +
+
+
diff --git a/templates/user_edit.php b/templates/user_edit.php index 1805d042c..c857fe1c8 100644 --- a/templates/user_edit.php +++ b/templates/user_edit.php @@ -8,47 +8,53 @@
- - +
- -
+ + - -
+ +
- -
+ +
- + +
- -
+ +
- -
+
- -
+
- + - -
+ +
- -
- + +
+ + +
- -
- - - - -
- + + +
+ + + + + + + + + + +
diff --git a/templates/user_login.php b/templates/user_login.php index f8981cb5a..878170e32 100644 --- a/templates/user_login.php +++ b/templates/user_login.php @@ -6,7 +6,7 @@

- +
diff --git a/templates/user_new.php b/templates/user_new.php index ec3d3f15e..6ad976f27 100644 --- a/templates/user_new.php +++ b/templates/user_new.php @@ -8,25 +8,33 @@
- -
+
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+
- +
+ + +
+ + +
+ + + +