1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-16 07:18:37 +00:00

Rename boardtype -> templatetype on template and form

This commit is contained in:
Lunny Xiao
2024-03-31 21:58:38 +08:00
parent 311a82ff72
commit f3554db10a
4 changed files with 8 additions and 18 deletions

View File

@@ -506,20 +506,10 @@ func (i IssueLockForm) HasValidReason() bool {
// CreateProjectForm form for creating a project
type CreateProjectForm struct {
Title string `binding:"Required;MaxSize(100)"`
Content string
BoardType project_model.TemplateType // NOTE: don't change the name except you know what you are doing
CardType project_model.CardType
}
// UserCreateProjectForm is a from for creating an individual or organization
// form.
type UserCreateProjectForm struct {
Title string `binding:"Required;MaxSize(100)"`
Content string
BoardType project_model.TemplateType
CardType project_model.CardType
UID int64 `binding:"Required"`
Title string `binding:"Required;MaxSize(100)"`
Content string
TemplateType project_model.TemplateType // NOTE: don't change the name except you know what you are doing
CardType project_model.CardType
}
// EditProjectColumnForm is a form for editing a project column