diff --git a/progit/forms.py b/progit/forms.py index dd089ad..64aae15 100644 --- a/progit/forms.py +++ b/progit/forms.py @@ -68,6 +68,17 @@ class AddIssueCommentForm(wtf.Form): ) +class AddPullRequestCommentForm(wtf.Form): + ''' Form to add a comment to a pull-request. ''' + commit = wtforms.HiddenField('commit identifier') + row = wtforms.HiddenField('row') + requestid = wtforms.HiddenField('requestid') + comment = wtforms.TextAreaField( + 'Comment*', + [wtforms.validators.Required()] + ) + + class UpdateIssueStatusForm(wtf.Form): ''' Form to update the status of an issue. ''' status = wtforms.SelectField(