Skip to content
Snippets Groups Projects
Commit 805f9194 authored by Fernando Katsukawa's avatar Fernando Katsukawa
Browse files

Merge branch '8.x-1.x' into 2.0.x

parents 3070ecff a803ea50
No related branches found
No related tags found
No related merge requests found
...@@ -101,10 +101,14 @@ class BootstrapDateTime extends FormElement { ...@@ -101,10 +101,14 @@ class BootstrapDateTime extends FormElement {
$element['#attributes']['class'] = ['form-control']; $element['#attributes']['class'] = ['form-control'];
// Prefix and Suffix. // Prefix and Suffix.
$element['#prefix'] = "<div class=" . $element['#wrapper_class'] . "> if (!isset($element['#prefix'])) {
<div class='row'> $element['#prefix'] = "<div class=" . $element['#wrapper_class'] . ">
<div class=" . $element['#column_size_class'] . ">"; <div class='row'>
$element['#suffix'] = "</div></div></div>"; <div class=" . $element['#column_size_class'] . ">";
}
if (!isset($element['#suffix'])) {
$element['#suffix'] = "</div></div></div>";
}
// Attach library. // Attach library.
$complete_form['#attached']['library'][] = 'bootstrap_datetime_picker/datetimepicker'; $complete_form['#attached']['library'][] = 'bootstrap_datetime_picker/datetimepicker';
......
...@@ -292,6 +292,7 @@ class BootstrapDateTimeWidget extends DateTimeWidgetBase { ...@@ -292,6 +292,7 @@ class BootstrapDateTimeWidget extends DateTimeWidgetBase {
$element['value']['#allow_times'] = $this->getSetting('allow_times'); $element['value']['#allow_times'] = $this->getSetting('allow_times');
$element['value']['#disable_days'] = $this->getSetting('disable_days'); $element['value']['#disable_days'] = $this->getSetting('disable_days');
$element['value']['#exclude_date'] = $this->getSetting('exclude_date'); $element['value']['#exclude_date'] = $this->getSetting('exclude_date');
$element['value']['#description'] = $this->getFilteredDescription();
return $element; return $element;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment