Changeset:
ab7357d40b8f
https://sourceforge.net/p/mrbs/hg-code/ci/ab7357d40b8f045586932b2d79df5996ee46f247
Author:
Campbell Morrison <[email protected]>
Date:
Wed Feb 22 15:47:33 2017 +0000
Log message:
Put the placeholder text in the label title, to help in cases when the text is
longer than the input (as it is in some languages).
diffstat:
web/functions_logon.inc | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r d74488bb53dc -r ab7357d40b8f web/functions_logon.inc
--- a/web/functions_logon.inc Wed Feb 22 15:42:09 2017 +0000
+++ b/web/functions_logon.inc Wed Feb 22 15:47:33 2017 +0000
@@ -8,13 +8,14 @@
function printLoginForm($action, $target_url, $returl)
{
$html = '';
-
+
$html .= "<form class=\"form_general\" id=\"logon\" method=\"post\"".
" action=\"" . htmlspecialchars($action) . "\">\n";
$html .= "<fieldset>\n";
$html .= "<legend>" . get_vocab("please_login") . "</legend>\n";
$html .= "<div>\n";
+
if (function_exists(__NAMESPACE__ . "\\canValidateByEmail")
&& canValidateByEmail())
{
@@ -24,8 +25,11 @@
{
$placeholder = get_vocab("users.name");
}
- $html .= "<label for=\"NewUserName\">" . get_vocab("user") . ":</label>\n";
- $html .= "<input type=\"text\" id=\"NewUserName\" name=\"NewUserName\"
placeholder=\"$placeholder\">\n";
+
+ $html .= "<label for=\"NewUserName\" title=\"$placeholder\">" .
+ get_vocab("user") . ":</label>\n";
+ $html .= "<input type=\"text\" id=\"NewUserName\" name=\"NewUserName\" " .
+ " placeholder=\"$placeholder\">\n";
$html .= "</div>\n";
$html .= "<div>\n";
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits