From 66950b824316cd9fe58939adb05f8059e6923488 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 26 2014 08:21:25 +0000 Subject: Add form to add a comment to an issue Signed-off-by: Pierre-Yves Chibon --- diff --git a/progit/forms.py b/progit/forms.py index a442cb5..611447d 100644 --- a/progit/forms.py +++ b/progit/forms.py @@ -60,6 +60,14 @@ class RequestPullForm(wtf.Form): ) +class AddIssueCommentForm(wtf.Form): + ''' Form to add a comment to an issue. ''' + comment = wtforms.TextAreaField( + 'Comment*', + [wtforms.validators.Required()] + ) + + class UpdateIssueStatusForm(wtf.Form): ''' Form to update the status of an issue. ''' status = wtforms.SelectField(