[ckan-dev] Problem with select boxes

Aníbal Pacheco anibal.pacheco at agesic.gub.uy
Tue Mar 11 16:28:13 UTC 2014


Thank you Hayden but are not the options which are wrong, is the html 
rendered, it seems broken.


On 10/03/14 14:42, Hayden Waring wrote:
> Hey Anibel,
>
> Take a look at how CKAN sets up it's select box in the admin.py
>
> styles = [{'text': 'Default', 'value': '/base/css/main.css'},
>
> {'text': 'Red', 'value': '/base/css/red.css'},
>
> {'text': 'Green', 'value': '/base/css/green.css'},
>
> {'text': 'Maroon', 'value': '/base/css/maroon.css'},
>
> {'text': 'Fuchsia', 'value': '/base/css/fuchsia.css'}]
>
>
> Select boxes take a list of dictionaries for options following the
> pattern {'text': 'my_option_name', 'value': 'my_option_value'}
>
> Hope it works for you
>
> Hayden Waring
> OpenGovGear



More information about the ckan-dev mailing list