YiiBooster icon indicating copy to clipboard operation
YiiBooster copied to clipboard

Datepicker problem

Open Ratomir opened this issue 10 years ago • 0 comments

Datepicker working in my module, but on page for register user not working and that page is rendered form site controllers and it is in view folder not in modules. On module page on click the calendar is displayed. It is same thing with Select2 Field.

This is how I load Yii booster in main.php config file.

        "aliases" => array(
                   "bootstrap" => realpath(__DIR__ . "/../extension/booster"),
         ),

    // preloading 'log' component
    'preload'=>array('log', "bootstrap"),


    'components'=>array(
            'bootstrap' => array(
            'class' => "ext.booster.components.Booster",
            'responsiveCss'=>true,
            "fontAwesomeCss" => true,
            "minify" => true
        ),

Code is same on bouth page, for register user and in module.

<div class="col-lg-6">
                <?php echo $form->datePickerGroup(
                    $modelReg,
                    'date',
                    array(
                        'widgetOptions' => array(
                            'options' => array(
                                'language' => 'es',
                            ),
                        ),
                        'wrapperHtmlOptions' => array(
                            'class' => 'col-sm-5',
                        ),
                        'hint' => 'Click inside! This is a super cool date field.',
                        'prepend' => '<i class="glyphicon glyphicon-calendar"></i>'
                    )
                ); ?>
            </div>

One jquery 1.11.1 library is load.

This is load scripts and css files from assets folders.

bootstrap.min.css
css/bootstrap-yii.css
css/jquery-ui-bootstrap.css
typeahead/css/typeahead.css
bootstrap-datepicker/css/datepicker3.css
jquery.js
bootstrap/js/bootstrap.min.js
js/bootstrap-noconflict.js
bootbox/bootbox.min.js
notify/notify.min.js
typeahead/js/typeahead.bundle.min.js
bootstrap-datepicker/js/bootstrap-datepicker.min.js
bootstrap-datepicker/js/bootstrap-datepicker-noconflict.js
bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js

What can be problematic. Every help is welcome. Thanks

Ratomir avatar Mar 07 '15 00:03 Ratomir