2amigos / yiiwheels

Widget extension library for the YiiStrap extension
http://yiiwheels.2amigos.us
Other
133 stars 77 forks source link

Flags in WhCountry #121

Closed mirjalal closed 10 years ago

mirjalal commented 10 years ago

hi.

I can't see country flags in dropdown list, like in the official example.. example link: http://yiiwheels.2amigos.us/site/inputs#multiselect

please help. thanks.

tonydspaniard commented 10 years ago

Mulitselect doesn't have any flags... Is the form helpers. Mind sharing some code?

mirjalal commented 10 years ago

sorry, but I would like to select only one country. for exp: Azerbaijan. but I couldn't see the flag of this country.

code:

<div class="span3">
        <p>Countries</p>
        <?php
        $this->widget(
            'yiiwheels.widgets.formhelpers.WhCountries',
            array(
                'name' => 'countrytest',
                'value' => 'US',
                'useHelperSelectBox' => true,
                'pluginOptions' => array(
                    'country' => 'US',
                    'flags' => true
                )
            )
        );
        ?>
    </div>
tonydspaniard commented 10 years ago

That Looks correct to me... have you checked on your browser console if there is any error of inclusion? Are you running the latest copy?

tonydspaniard commented 10 years ago

related to #97

mirjalal commented 10 years ago

but it's not correct to me..

yes i have checked, there is not any error and/or warning.

yes i have the lastest copy...

tonydspaniard commented 10 years ago

I think is due to the order of the CSS.

On Sun, Jul 27, 2014 at 5:05 PM, Mircəlal notifications@github.com wrote:

but it's not correct to me..

yes i have checked, there is not any error and/or warning.

yes i have the lastest copy...

— Reply to this email directly or view it on GitHub https://github.com/2amigos/yiiwheels/issues/121#issuecomment-50266696.

Antonio Ramirez

2amigOS.us http://2amigos.us/ amigo.cobos@gmail.com Phone: +1 516-441-0023 Mobile: +34 607 040932 Skype: toni.ramirez

mirjalal commented 10 years ago

but how to fix this problem?

tonydspaniard commented 10 years ago

@mirjalal check how i did it on the docs: https://github.com/2amigos/yiiwheels-docs

Check their order

tonydspaniard commented 10 years ago

@mirjalal form-helpers updated to new version coming for BS3