from flask.ext.wtf import Form, TextField, SelectField
from flask.ext.wtf import Required

class SearchForm(Form):
    """Provides the search form at the top of every page"""
    function_name = TextField('function_name', validators = [Required()])
    searchby = SelectField('searchby', choices = [
                                            ('name', 'Name'),
                                            ('file', 'File'),
                                            ('provides', 'Provides'),
                                            ('requires', 'Requires'),
                                            ('description', 'Description'),
                                            ('summary', 'Summary')])
