Parent: [04617c] (diff)

Download this file

issue_form.py    17 lines (14 with data), 527 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
import tw.forms as twf
from pylons import c
from forgetracker import model
issue_form = twf.TableForm('issue_form', action='../save_issue', children=[
twf.HiddenField('issue_num'),
twf.TextField('summary'),
twf.Spacer(),
twf.TextArea('description', suppress_label=True),
twf.TextField('reported_by'),
twf.TextField('assigned_to'),
twf.TextField('milestone'),
twf.SingleSelectField('status',
options=lambda: model.Globals.query.get(project_id=c.project._id).status_names.split(','))
])