From 608cdb52e179d6494fc5f88120a792a38747b164 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 21 2015 10:09:58 +0000 Subject: Add a form to create remote pull-requests --- diff --git a/pagure/forms.py b/pagure/forms.py index cdd8e5d..8a8d06f 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -93,6 +93,26 @@ class RequestPullForm(wtf.Form): ) +class RemoteRequestPullForm(wtf.Form): + ''' Form to create a remote request pull. ''' + title = wtforms.TextField( + 'Title*', + [wtforms.validators.Required()] + ) + git_repo = wtforms.TextField( + 'Git repo address*', + [wtforms.validators.Required()] + ) + branch_from = wtforms.TextField( + 'Git branch*', + [wtforms.validators.Required()] + ) + branch_to = wtforms.TextField( + 'Git branch to merge in*', + [wtforms.validators.Required()] + ) + + class AddIssueTagForm(wtf.Form): ''' Form to add a comment to an issue. ''' tag = wtforms.TextField(