def event(event_id): event = VRDB.event(event_id) form = VRForms.addevent(MultiDict(event)) customers = VRDB.customers() attendence = VRDB.event_attendence(event_id) return render_template('event.html', form=form, customers=customers)
def add_event(): form = VRForms.addevent() if form.validate_on_submit(): event_id = VRDB.event_add(name=request.form['name'], date=request.form['date'], description=request.form['description']) app.logger.debug('moo') # XXX return redirect(url_for('event', event_id=event_id)) return render_template('add_event.html', form=form)