MDL-56767 theme_boost: change remember username checkbox to bs4 style
authorSimey Lameze <simey@moodle.com>
Thu, 17 Nov 2016 04:12:34 +0000 (12:12 +0800)
committerSimey Lameze <simey@moodle.com>
Thu, 17 Nov 2016 05:36:21 +0000 (13:36 +0800)
blocks/login/block_login.php

index 5699ba6..26ca859 100644 (file)
@@ -87,9 +87,11 @@ class block_login extends block_base {
 
             if (isset($CFG->rememberusername) and $CFG->rememberusername == 2) {
                 $checked = $username ? 'checked="checked"' : '';
-                $this->content->text .= '<div class="form-check-inline">';
-                $this->content->text .= '<input type="checkbox" name="rememberusername" id="rememberusername" class="form-check-input" value="1" '.$checked.'/>';
-                $this->content->text .= ' <label for="rememberusername" class="form-check-label">'.get_string('rememberusername', 'admin').'</label>';
+                $this->content->text .= '<div class="form-check">';
+                $this->content->text .= '<label class="form-check-label">';
+                $this->content->text .= '<input type="checkbox" name="rememberusername" id="rememberusername"
+                        class="form-check-input" value="1" '.$checked.'/> ';
+                $this->content->text .= get_string('rememberusername', 'admin').'</label>';
                 $this->content->text .= '</div>';
             }