diff options
author | Unknwon <u@gogs.io> | 2015-08-30 03:21:59 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-30 03:21:59 +0800 |
commit | c6b039c6f96762709af109613b5262ea061e25b8 (patch) | |
tree | 67261e696656e0a2de87163ce6b7cc29945338aa /modules/auth/repo_form.go | |
parent | d01f688257b028132fd75fd7200093c97282a97d (diff) | |
download | gitea-c6b039c6f96762709af109613b5262ea061e25b8.tar.gz gitea-c6b039c6f96762709af109613b5262ea061e25b8.zip |
new repo options UI
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r-- | modules/auth/repo_form.go | 12 |
1 files changed, 6 insertions, 6 deletions
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 { |