diff --git a/pagure/forms.py b/pagure/forms.py index 8ea955a..d34ed72 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -25,7 +25,23 @@ class ProjectForm(wtf.Form): ) -class IssueForm(wtf.Form): +class IssueFormSimplied(wtf.Form): + ''' Form to create or edit an issue. ''' + title = wtforms.TextField( + 'Title*', + [wtforms.validators.Required()] + ) + issue_content = wtforms.TextAreaField( + 'Content*', + [wtforms.validators.Required()] + ) + private = wtforms.BooleanField( + 'Private', + [wtforms.validators.optional()], + ) + + +class IssueForm(IssueFormSimplied): ''' Form to create or edit an issue. ''' title = wtforms.TextField( 'Title*',