[html-formfu] how to write yml for many select option

chylli lchangying at gmail.com
Tue May 29 17:59:28 GMT 2007


HI, I'm a newbie to HTML::FormFu
Now I want to write a select elemnt whose options are from 1900 to
2000, but how to write my yaml file ?
like following :

  - type: multi
    container_attrs:
      class: vertical
    label: birthday
    elements:
      - type: select
        name: year
        values: [year, 1900, 1901, 1902 ..... 2000]
      - type: select
        name: month
        values: [month, 1,2,3,...12]
      - type: select
        name: day
        values: [day, 1,2,3,..31]

I must write the year form 1900 to 2000. that is so urgly. I think
there must be a clearer way to do that. Can you teach me ?

-- 

Thanks & Regards

Chylli



More information about the HTML-FormFu mailing list