]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes MDL-7244 "Missing accessibility label on login block input forms". (Previous...
authornfreear <nfreear>
Fri, 1 Dec 2006 15:27:05 +0000 (15:27 +0000)
committernfreear <nfreear>
Fri, 1 Dec 2006 15:27:05 +0000 (15:27 +0000)
blocks/login/block_login.php
theme/standard/styles_layout.css

index 45c956089c5cf80877fbaca5c8e8d9d3fc9a2d88..4c140af426eb07c4bf8eda4581d3f5d33bdcdd7d 100644 (file)
@@ -48,17 +48,16 @@ class block_login extends block_base {
         $this->content->text = '';
 
         if (empty($USER->loggedin) or isguest()) {   // Show the block
-///            $this->content->text .= '<style> .loginform div { margin:0.4em 0.4em; text-align:right; } .loginform input { width: 6em; } .r2 input { text-align:center; } </style>'; //DONOTCOMMIT:TODO
 
             $this->content->text .= "\n".'<form class="loginform" name="login" method="post" action="'.$wwwroot.'/login/index.php">';
 
-            $this->content->text .= '<div class="r0"><label for="login_username">'.get_string('username').'</label>: ';
+            $this->content->text .= '<div class="c1"><label for="login_username">'.get_string('username').'</label>: ';
             $this->content->text .= '<input type="text" name="username" id="login_username" value="'.$username.'" /></div>';
 
-            $this->content->text .= '<div class="r1"><label for="login_password">'.get_string('password').'</label>: ';
+            $this->content->text .= '<div class="c1"><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="r2"><input type="submit" value="'.get_string('login').'" /></div>';
+            $this->content->text .= '<div class="c1 btn"><input type="submit" value="'.get_string('login').'" /></div>';
 
             $this->content->text .= "</form>\n";
 
index be5a96ba0ce07b6940f7eb8125ebbd039ab224b0..c04582688667ece0c1dddf023a800d0ef7d68f06 100644 (file)
@@ -1344,6 +1344,13 @@ body#grade-index .grades .weighted {
   width: 6em;
 }
 
+.block_login .loginform div {
+  margin:0.3em 0.8em;
+  text-align:right;
+}
+.block_login .btn input {
+  text-align:center;
+}
 
 /***
  *** Message