Julio Montoya 10 anni fa
parent
commit
fab006e0d4

+ 4 - 1
main/inc/lib/display.lib.php

@@ -1758,7 +1758,7 @@ class Display
      * @param string $type
      * @return string
      */
-    public static function label($content, $type = null)
+    public static function label($content, $type = 'default')
     {
         $class = '';
         switch ($type) {
@@ -1777,6 +1777,9 @@ class Display
             case 'inverse':
                 $class = 'label-inverse';
                 break;
+            default:
+                $class = 'label-default';
+                break;
         }
 
         $html = '';

+ 2 - 2
main/inc/lib/formvalidator/Element/DatePicker.php

@@ -2,7 +2,7 @@
 /* For licensing terms, see /license.txt */
 
 /**
- * Form element to select a date and hour (with popup datepicker)
+ * Form element to select a date.
  *
  * Class DatePicker
  */
@@ -18,7 +18,7 @@ class DatePicker extends HTML_QuickForm_text
         if (!isset($attributes['id'])) {
             $attributes['id'] = $elementName;
         }
-        //$attributes['class'] = '';
+        $attributes['class'] = 'form-control';
 
         HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
         $this->_appendName = true;

+ 2 - 2
main/inc/lib/formvalidator/Element/DateTimePicker.php

@@ -2,7 +2,7 @@
 /* For licensing terms, see /license.txt */
 
 /**
- * Form element to select a date and hour (with popup datepicker)
+ * Form element to select a date and hour.
  */
 class DateTimePicker extends HTML_QuickForm_text
 {
@@ -14,7 +14,7 @@ class DateTimePicker extends HTML_QuickForm_text
         if (!isset($attributes['id'])) {
             $attributes['id'] = $elementName;
         }
-
+        $attributes['class'] = 'form-control';
         HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
         $this->_appendName = true;
         $this->_type = 'date_time_picker';