I've added 2amigos datepicker for Yii2 (https://github.com/2amigos/yii2-date-picker-widget) to my form.
However the datepicker is rendered a few lines above the actual input field, as seen in the screenshot below:
The datepicker should be displayed just above the "Create time" field. I've also tried Kartik's DatePicker, same results.
My code is:
<?php
use dosamigos\datepicker\DatePicker;
<?= $form->field($model, 'create_time')->widget(DatePicker::className(), [
'template' => '{input}{addon}',
'clientOptions' => [
'autoclose' => true,
'format' => 'yyyy-mm-dd'
]
]) ?>
The rest of the form is generated with Yii2 CRUD generator.
