diff --git a/progit/forms.py b/progit/forms.py index e69de29..e17a46e 100644 --- a/progit/forms.py +++ b/progit/forms.py @@ -0,0 +1,24 @@ +#-*- coding: utf-8 -*- + +""" + (c) 2014 - Copyright Red Hat Inc + + Authors: + Pierre-Yves Chibon + +""" + +from flask.ext import wtf +import wtforms + + +class ProjectForm(wtf.Form): + ''' Form to create or edit project. ''' + name = wtforms.TextField( + 'Project name *', + [wtforms.validators.Required()] + ) + description = wtforms.TextField( + 'description', + [wtforms.validators.optional()] + )