Oi, estou com uma dúvida, como faço para colocar o Label "campus" como um 
combobox?
Agradeço.


def index():
    container = DIV(_class='container')
    form = FORM(_action=URL('pesquisa','pesquisar'), _method='post')
    form.append(LABEL('Nome'))
    form.append(INPUT(_name='nome', type='text'))
    form.append(BR())
    form.append(LABEL('Setor'))
    form.append(INPUT(_name='setor',_type='text'))
    form.append(BR())
    form.append(LABEL('Campus'))
    #form.append(INPUT(_name='campus',_text='text'))
    form.append(INPUT(_name='campus',required=True, 
requires=IS_IN_SET(cidade)))
    form.append(BR())
    form.append(INPUT(_value='enviar',_type='submit'))
    container.append(form)
    if form.accepts(request.vars, session):
        response.flash = 'Sucesso'
        container = DIV(H3('Dados enviados com sucesso! 
Obrigado'),_class='container')
    elif form.errors:
        response.flash = 'Erros encontrados, tente novamente'

    return dict(container=container)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to