From 92fb30c5260cc067da28ae3cd031b76f7b7976db Mon Sep 17 00:00:00 2001 From: Thibault Meyer <0xbaadf00d@users.noreply.github.com> Date: Tue, 30 Aug 2016 04:02:49 +0200 Subject: Load a set of predefined labels (#3459) * Can use a predefined set of labels * Change UI * Fix HTML file indentation * Avoid reading file from other directory (security issue) * Apply a better fix * Remove not used variable * Merge upstream/develop * Do modifications * Raname * remove binding + rename variable --- modules/auth/repo_form.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/auth/repo_form.go') diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index e537da8a..194f3326 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -220,6 +220,16 @@ func (f *CreateLabelForm) Validate(ctx *macaron.Context, errs binding.Errors) bi return validate(errs, ctx.Data, f, ctx.Locale) } +// Label templates + +type InitializeLabelsForm struct { + TemplateName string `binding:"Required"` +} + +func (f *InitializeLabelsForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { + return validate(errs, ctx.Data, f, ctx.Locale) +} + // __________ .__ // \______ \ ____ | | ____ _____ ______ ____ // | _// __ \| | _/ __ \\__ \ / ___// __ \ -- cgit v1.2.3