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

bootstrap 4 design #73

Open
srakl opened this issue Jul 3, 2022 · 1 comment
Open

bootstrap 4 design #73

srakl opened this issue Jul 3, 2022 · 1 comment

Comments

@srakl
Copy link

srakl commented Jul 3, 2022

This is how it looks in my view,

This is an image

how do i get it to look like the website input above it?
I also added form-control-lg but it doesn't reflect in the html. My html only shows this

<input type="tel" id="profile-mobile" class="form-control" name="Profile[mobile]" value="" autocomplete="off" style="padding-left: 86px;" placeholder="12-345 6789">

Below is my code in my view.

<?= $form->field($model, 'mobile')->widget(PhoneInput::class, [
                            'htmlTagType' => 'tel',
                            'defaultOptions' => ['autocomplete' => "off", 'class' => 'form-control form-control-lg'],
                            'jsOptions' => [
                                'separateDialCode' => true,
                                'utilsScript' => 'https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/js/utils.min.js',
                            ]
                        ]);
                    ?>

thank you

@srakl
Copy link
Author

srakl commented Jul 3, 2022

Found the solution. Added this to my css

.iti{ width: 100%;}

The form-control-lg is still not working tho

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