summaryrefslogtreecommitdiffstats
path: root/modules/auth/repo_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-09 15:23:02 +0800
committerUnknwon <u@gogs.io>2015-08-09 15:23:02 +0800
commit590c464c56c993c461f10470926a96448f4f7d00 (patch)
treee79642dd169eecc9757e1aa76f4e68568a6b9f46 /modules/auth/repo_form.go
parent43a87b0caf50abe6d6b19adf10dd9f082c58ad61 (diff)
downloadgitea-590c464c56c993c461f10470926a96448f4f7d00.tar.gz
gitea-590c464c56c993c461f10470926a96448f4f7d00.zip
UI: create issue with title and content
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r--modules/auth/repo_form.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 9863902173..3be8e0f8be 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -98,11 +98,11 @@ func (f *NewSlackHookForm) Validate(ctx *macaron.Context, errs binding.Errors) b
// \/ \/ \/
type CreateIssueForm struct {
- IssueName string `form:"title" binding:"Required;MaxSize(255)"`
- MilestoneId int64 `form:"milestoneid"`
- AssigneeId int64 `form:"assigneeid"`
- Labels string `form:"labels"`
- Content string `form:"content"`
+ Title string `binding:"Required;MaxSize(255)"`
+ LabelIDs []int64 `form:"label_id"`
+ MilestoneID int64
+ AssigneeID int64
+ Content string
}
func (f *CreateIssueForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {