mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 14:12:37 +02:00
feat(runner): make admin runner template as common template, use for org runners setting
This commit is contained in:
1 parent
dca2ca2f47
commit
25fe4f6d9e
11 files changed
+414
-214
No files matched your search
@@ -71,27 +71,3 @@ func (f *AdminDashboardForm) Validate(req *http.Request, errs binding.Errors) bi
|
||||
ctx := context.GetContext(req)
|
||||
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
|
||||
}
|
||||
|
||||
// AdminCreateRunnerForm form for admin to create runner
|
||||
type AdminCreateRunnerForm struct {
|
||||
Name string `binding:"Required"`
|
||||
Type string
|
||||
}
|
||||
|
||||
// Validate validates form fields
|
||||
func (f *AdminCreateRunnerForm) Validate(req *http.Request, errs binding.Errors) binding.Errors {
|
||||
ctx := context.GetContext(req)
|
||||
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
|
||||
}
|
||||
|
||||
// AdminEditRunnerForm form for admin to create runner
|
||||
type AdminEditRunnerForm struct {
|
||||
Description string
|
||||
CustomLabels string
|
||||
}
|
||||
|
||||
// Validate validates form fields
|
||||
func (f *AdminEditRunnerForm) Validate(req *http.Request, errs binding.Errors) binding.Errors {
|
||||
ctx := context.GetContext(req)
|
||||
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
|
||||
}
|
||||
Reference in new issue
Block a user