diff --git a/progit/forms.py b/progit/forms.py index e17a46e..f0688a7 100644 --- a/progit/forms.py +++ b/progit/forms.py @@ -22,3 +22,15 @@ class ProjectForm(wtf.Form): 'description', [wtforms.validators.optional()] ) + + +class IssueForm(wtf.Form): + ''' Form to create or edit an issue. ''' + title = wtforms.TextField( + 'Title*', + [wtforms.validators.Required()] + ) + content = wtforms.TextAreaField( + 'Content*', + [wtforms.validators.Required()] + )