[ckan-dev] Problem with select boxes

Hayden Waring haydenwaring at gmail.com
Mon Mar 10 17:42:01 UTC 2014


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



On Mon, Mar 10, 2014 at 10:33 AM, Aníbal Pacheco <
anibal.pacheco at agesic.gub.uy> wrote:

> Hello, I'm attaching screenshots to show a problem with some select boxes
> to see if anybody can help, they work but they look broken in the screen.
> Thanks
>
>
> --
> Ing. Aníbal Pacheco
>
> Área de Tecnología
> AGESIC
> Torre Ejecutiva Sur
> Liniers 1324 piso 3
> Tel: (+598) 2901 2929 Int. 8524
> (11.000) Montevideo - URUGUAY
> www.agesic.gub.uy
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140310/eaedef1f/attachment-0003.html>


More information about the ckan-dev mailing list