From c0d41b1b77169553006bd9211d025de4da8bafd8 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 13 Mar 2018 04:03:55 +0200 Subject: Add label descriptions (#3662) * Add label descriptions * Add default descriptions to label template --- modules/auth/repo_form.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 634274c4e8..abe25866b6 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -310,9 +310,10 @@ func (f *CreateMilestoneForm) Validate(ctx *macaron.Context, errs binding.Errors // CreateLabelForm form for creating label type CreateLabelForm struct { - ID int64 - Title string `binding:"Required;MaxSize(50)" locale:"repo.issues.label_name"` - Color string `binding:"Required;Size(7)" locale:"repo.issues.label_color"` + ID int64 + Title string `binding:"Required;MaxSize(50)" locale:"repo.issues.label_title"` + Description string `binding:"MaxSize(200)" locale:"repo.issues.label_description"` + Color string `binding:"Required;Size(7)" locale:"repo.issues.label_color"` } // Validate validates the fields -- cgit v1.2.3