From 446569ecb9f5d4a24152e7a1cf1c8600d52c9e8f Mon Sep 17 00:00:00 2001 From: Quitta Date: Tue, 18 Jun 2013 16:27:57 +0200 Subject: [PATCH] show error message + tooltips while registering --- .../ryzom_ams/ams_lib/translations/en.ini | 2 +- .../ryzom_ams/www/html/templates/register.tpl | 44 +++++++++++++++++-- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini index a1ad8d461..af9f29d05 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini @@ -14,7 +14,7 @@ username_tooltip = "5-12 lower-case characters and numbers. The login (username) username_default = "Username" password_tag = "Desired Password" -password_tooltip = "Pick a hard to guess password (5-20 characters)." +password_tooltip = "Pick a hard to guess password (it must be 5-20 characters)." password_message = "Password must be 5-20 characters." password_default = "Password" diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl index 33543a3bf..2ebdd67a9 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl @@ -21,7 +21,7 @@
- +
@@ -33,7 +33,7 @@
- +
@@ -44,7 +44,7 @@
- +
@@ -55,7 +55,7 @@
- +
@@ -69,6 +69,42 @@ + + {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"} +
+ + Username Error {$USERNAME} +
+ {/if} + + {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"} +
+ + Password Error {$PASSWORD} +
+ {/if} + + {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"} +
+ + Confirmation Password Error {$CPASSWORD} +
+ {/if} + + {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"} +
+ + Email Error {$EMAIL} +
+ {/if} + + {if isset($TAC_ERROR) and $TAC_ERROR eq "TRUE"} +
+ + Terms of Service Error {$tac_message} +
+ {/if} +