From 247d017a9a3e3b439d3f8e10f96eb941abab246a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 31 2014 10:51:39 +0000 Subject: Add form used to add inline comments in a pull-request --- 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(