This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
Calendar does not pop up #41
Open
Description
When I click on the form field nothing happens. I can see the changes to the field, but doesn't work. Not sure if I missed something but I followed the installation without any issues.
<?php $form = ActiveForm::begin(); ?>
<?=$form->field($model, 'class_name')->dropDownList(
ArrayHelper::map(ClassTitles::find()->all(), 'class_name','class_name'), ['prompt'=>'Select a Class'])?>
<?= $form->field($model, 'price')->textInput() ?>
<?= $form->field($model, 'weeks')->textInput() ?>
<?= $form->field($model, 'starting_date')->widget(
DatePicker::className(), [
// inline too, not bad
'inline' => true,
// modify template for custom rendering
'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>',
'clientOptions' => [
'autoclose' => true,
'format' => 'dd-M-yyyy'
]
]);?>
<?= $form->field($model, 'ending_date')->textInput() ?>
<?= $form->field($model, 'time')->textInput() ?>
<?= $form->field($model, 'duration')->textInput() ?>
<?= $form->field($model, 'scheduled_on')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>