Hello,

I know I am probably overlooking something really obvious, but I can't
get the datepicker to show up for a simple search field.  The search
seems to work ok, but I have to manually enter the date.

my controller function is:
***********************************************************************
def search():
    form=FORM(INPUT(_name='datestamp', _class='date',
requires=IS_DATE()), INPUT(_type='submit'))
    if form.accepts(request.vars, session):
        entry =
db(db.log_entry.datestamp==form.vars.datestamp).select().first()
        if entry:
            session.flash='Found it!'
            redirect(URL('edit', args = entry.id))
        else:
            response.flash="Can't seem to find it..."
    elif form.errors:
        response.flash='there was a problem...'
    else:
        response.flash='Enter something!'
    return dict(form=form)
 
************************************************************************

my view is just:

{{extend 'layout.html'}}
<h1>This is the default/search.html template</h1>
{{=form}}

I know it is probably an obvious noob mistake, but I just don't see
it...

Thanks

Reply via email to