From 6c3e4fa5a674063e61fb92f5d9001649476c9cc0 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 26 Feb 2016 18:10:32 +0100 Subject: Replace several alerts with friendlier messages --- css/codeq.css | 17 ++++++++++++----- index.html | 12 +++++++++--- js/codeq/change_password.js | 17 ++++++++++------- js/codeq/login.js | 2 +- js/codeq/signup.js | 46 +++++++++++++++++++++++++++++++-------------- res/en.json | 9 ++++++--- res/sl.json | 5 ++++- 7 files changed, 74 insertions(+), 34 deletions(-) diff --git a/css/codeq.css b/css/codeq.css index 87f599c..3ae5871 100644 --- a/css/codeq.css +++ b/css/codeq.css @@ -110,6 +110,17 @@ form { margin-bottom: 0; } +form .error { + color: red; +} + +form .success { + color: green; + margin-top: 1em; + margin-bottom: 0.5em; + text-align: center; +} + div#disabled { background-color: rgba(0, 0, 0, 0.7); cursor: wait; @@ -121,14 +132,10 @@ div#disabled { } /* modal screens*/ -#screen-login, #screen-signup, #screen-change-pass, #screen-settings, #screen-upgrade-to-aai { +#screen-login, #screen-signup, #screen-change-password, #screen-settings, #screen-upgrade-to-aai { padding: 15px 0; } -#screen-login div.login-failed { - color: red; -} - /* screen language */ #screen-language { margin-top: 4em; diff --git a/index.html b/index.html index 3585499..9675f40 100644 --- a/index.html +++ b/index.html @@ -107,7 +107,7 @@

Please sign in

-
+
- +
@@ -173,6 +173,7 @@ data-tkey-placeholder="username_placeholder" placeholder="Desired username" data-tkey-title="username_title" title="Choose a alpha-numeric username of 5-15 characters." pattern="^[a-z,A-Z,0-9,_]{5,15}$" data-valid-min="5" required="required" /> +
@@ -200,11 +201,15 @@ data-tkey-placeholder="password_verify_placeholder" placeholder="Repeat the password again" data-tkey-title="password_title" title="Choose a password with at least one number, one lowercase and one uppercase letter and at least 6 characters." pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" data-valid-min="6" required="required" /> +
+
+ Welcome, ! +
-