Child: [e5695e] (diff)

Download this file

bin_form.py    13 lines (10 with data), 367 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import tw.forms as twf
from pylons import c
from forgetracker import model
bin_form = twf.TableForm('bin_form', action='../save_bin', children=[
twf.TextField('summary'),
twf.Spacer(),
twf.TextField('terms'),
twf.SingleSelectField('status',
options=lambda: model.Globals.query.get(app_config_id=c.app.config._id).status_names.split(','))
])