Parent: [12ffbb] (diff)

Child: [901253] (diff)

Download this file

ticket_form.py    18 lines (14 with data), 614 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import tw.forms as twf
from pylons import c
from forgetracker import model
ticket_form = twf.TableForm('ticket_form', action='../save_ticket', children=[
twf.HiddenField('ticket_num'),
twf.TextField('summary'),
twf.Spacer(),
twf.TextArea('description', suppress_label=True),
# twf.TextField('assigned_to'),
twf.SingleSelectField('milestone',
options=lambda: model.Globals.query.get(app_config_id=c.app.config._id).milestone_names.split()),
twf.SingleSelectField('status',
options=lambda: model.Globals.query.get(app_config_id=c.app.config._id).status_names.split())
])