]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed display of times in admin settings using form-group
authormoodler <moodler>
Mon, 25 Sep 2006 12:48:07 +0000 (12:48 +0000)
committermoodler <moodler>
Mon, 25 Sep 2006 12:48:07 +0000 (12:48 +0000)
lib/adminlib.php

index 7647806eee31ead5bb0535af158e9fd7a9f4ef9c..7521f54d9339986843134fabc90b3505f36eb34c 100644 (file)
@@ -1460,15 +1460,16 @@ class admin_setting_configtime extends admin_setting {
         } else {
           $currentsetting = $this->get_setting();
         }
-        $return = '<select class="form-select" id="id_s_'.$this->name.'h" name="s_' . $this->name .'[h]">';
+        $return = '<div class="form-group">'.
+                  '<select class="form-select" id="id_s_'.$this->name.'h" name="s_' . $this->name .'[h]">';
         foreach ($this->choices as $key => $value) {
             $return .= '<option value="' . $key . '"' . ($key == $currentsetting['h'] ? ' selected="selected"' : '') . '>' . $value . '</option>';
         }
-        $return .= '</select>&nbsp;&nbsp;&nbsp;<select class="form-select" id="id_s_'.$this->name.'m" name="s_' . $this->name . '[m]">';
+        $return .= '</select>:<select class="form-select" id="id_s_'.$this->name.'m" name="s_' . $this->name . '[m]">';
         foreach ($this->choices2 as $key => $value) {
             $return .= '<option value="' . $key . '"' . ($key == $currentsetting['m'] ? ' selected="selected"' : '') . '>' . $value . '</option>';
         }
-        $return .= '</select>';
+        $return .= '</select></div>';
         return format_admin_setting('configtime', $this->name, $this->visiblename, $return, $this->description);
     }