From c6b039c6f96762709af109613b5262ea061e25b8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 30 Aug 2015 03:21:59 +0800 Subject: new repo options UI --- modules/auth/repo_form.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/auth') diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 32b75d3279..03dacbf88e 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -47,12 +47,12 @@ func (f *MigrateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) bi } type RepoSettingForm struct { - RepoName string `form:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` - Description string `form:"desc" binding:"MaxSize(255)"` - Website string `form:"site" binding:"Url;MaxSize(100)"` - Branch string `form:"branch"` - Interval int `form:"interval"` - Private bool `form:"private"` + RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` + Description string `binding:"MaxSize(255)"` + Website string `binding:"Url;MaxSize(100)"` + Branch string + Interval int + Private bool } func (f *RepoSettingForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { -- cgit v1.2.3