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

Issue #3106036 by turtletrail, fkatsukawa: Prefix and suffix are hardcoded

parent 692edba0
No related branches found
No related tags found
No related merge requests found
......@@ -101,10 +101,14 @@ class BootstrapDateTime extends FormElement {
$element['#attributes']['class'] = ['form-control'];
// Prefix and Suffix.
$element['#prefix'] = "<div class=" . $element['#wrapper_class'] . ">
<div class='row'>
<div class=" . $element['#column_size_class'] . ">";
$element['#suffix'] = "</div></div></div>";
if (!isset($element['#prefix'])) {
$element['#prefix'] = "<div class=" . $element['#wrapper_class'] . ">
<div class='row'>
<div class=" . $element['#column_size_class'] . ">";
}
if (!isset($element['#suffix'])) {
$element['#suffix'] = "</div></div></div>";
}
// Attach library.
$complete_form['#attached']['library'][] = 'bootstrap_datetime/datetimepicker';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment