Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker problem #1011

Open
Ratomir opened this issue Mar 7, 2015 · 0 comments
Open

Datepicker problem #1011

Ratomir opened this issue Mar 7, 2015 · 0 comments

Comments

@Ratomir
Copy link

Ratomir commented Mar 7, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant