merged from 1.9 :: MDL-12881 :: added class names "username" and "password" for better login form handling.

This commit is contained in:
urs_hunkler 2008-01-08 18:07:47 +00:00
parent 40a94e4374
commit 4457871960

View File

@ -45,10 +45,10 @@ class block_login extends block_base {
$this->content->text .= "\n".'<form class="loginform" id="login" method="post" action="'.$wwwroot.'/login/index.php">';
$this->content->text .= '<div class="c1 fld"><label for="login_username">'.get_string('username').'</label>';
$this->content->text .= '<div class="c1 fld username"><label for="login_username">'.get_string('username').'</label>';
$this->content->text .= '<input type="text" name="username" id="login_username" value="'.s($username).'" /></div>';
$this->content->text .= '<div class="c1 fld"><label for="login_password">'.get_string('password').'</label>';
$this->content->text .= '<div class="c1 fld password"><label for="login_password">'.get_string('password').'</label>';
$this->content->text .= '<input type="password" name="password" id="login_password" value="" /></div>';
$this->content->text .= '<div class="c1 btn"><input type="submit" value="'.get_string('login').'" /></div>';