Commit c8b64632 authored by Dries's avatar Dries

- Resized two textfields for UI consistentcy.  Patch by Stefan.
parent 081263ab
...@@ -643,12 +643,12 @@ function user_login($edit = array(), $msg = "") { ...@@ -643,12 +643,12 @@ function user_login($edit = array(), $msg = "") {
$output .= "<p>$msg</p>"; $output .= "<p>$msg</p>";
} }
if (count(user_auth_help_links()) > 0) { if (count(user_auth_help_links()) > 0) {
$output .= form_textfield(t("Username"), "name", $edit["name"], 20, 64, t("Enter your %s username, or an ID from one of our affiliates: %a.", array("%s" => variable_get("site_name", "local"), "%a" => implode(", ", user_auth_help_links())))); $output .= form_textfield(t("Username"), "name", $edit["name"], 30, 64, t("Enter your %s username, or an ID from one of our affiliates: %a.", array("%s" => variable_get("site_name", "local"), "%a" => implode(", ", user_auth_help_links()))));
} }
else { else {
$output .= form_textfield(t("Username"), "name", $edit["name"], 20, 64, t("Enter your %s username.", array("%s" => variable_get("site_name", "local")))); $output .= form_textfield(t("Username"), "name", $edit["name"], 30, 64, t("Enter your %s username.", array("%s" => variable_get("site_name", "local"))));
} }
$output .= form_password(t("Password"), "pass", $pass, 20, 64, t("Enter the password that accompanies your username.")); $output .= form_password(t("Password"), "pass", $pass, 30, 64, t("Enter the password that accompanies your username."));
$output .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0); $output .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0);
$output .= form_submit(t("Log in")); $output .= form_submit(t("Log in"));
$output .= "<p>&raquo; ". l(t("Request new password"), "user/password"). "<br />"; $output .= "<p>&raquo; ". l(t("Request new password"), "user/password"). "<br />";
......
...@@ -643,12 +643,12 @@ function user_login($edit = array(), $msg = "") { ...@@ -643,12 +643,12 @@ function user_login($edit = array(), $msg = "") {
$output .= "<p>$msg</p>"; $output .= "<p>$msg</p>";
} }
if (count(user_auth_help_links()) > 0) { if (count(user_auth_help_links()) > 0) {
$output .= form_textfield(t("Username"), "name", $edit["name"], 20, 64, t("Enter your %s username, or an ID from one of our affiliates: %a.", array("%s" => variable_get("site_name", "local"), "%a" => implode(", ", user_auth_help_links())))); $output .= form_textfield(t("Username"), "name", $edit["name"], 30, 64, t("Enter your %s username, or an ID from one of our affiliates: %a.", array("%s" => variable_get("site_name", "local"), "%a" => implode(", ", user_auth_help_links()))));
} }
else { else {
$output .= form_textfield(t("Username"), "name", $edit["name"], 20, 64, t("Enter your %s username.", array("%s" => variable_get("site_name", "local")))); $output .= form_textfield(t("Username"), "name", $edit["name"], 30, 64, t("Enter your %s username.", array("%s" => variable_get("site_name", "local"))));
} }
$output .= form_password(t("Password"), "pass", $pass, 20, 64, t("Enter the password that accompanies your username.")); $output .= form_password(t("Password"), "pass", $pass, 30, 64, t("Enter the password that accompanies your username."));
$output .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0); $output .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0);
$output .= form_submit(t("Log in")); $output .= form_submit(t("Log in"));
$output .= "<p>&raquo; ". l(t("Request new password"), "user/password"). "<br />"; $output .= "<p>&raquo; ". l(t("Request new password"), "user/password"). "<br />";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment