mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-23 11:55:48 -05:00
chore: Remove DeadlineForm
- Introduced in1a97030017
and removed inef6813abc9
.
This commit is contained in:
parent
552cfe75f5
commit
4d8f1e3e4b
2 changed files with 0 additions and 14 deletions
|
@ -253,9 +253,6 @@ code.gitea.io/gitea/services/context
|
||||||
code.gitea.io/gitea/services/convert
|
code.gitea.io/gitea/services/convert
|
||||||
ToSecret
|
ToSecret
|
||||||
|
|
||||||
code.gitea.io/gitea/services/forms
|
|
||||||
DeadlineForm.Validate
|
|
||||||
|
|
||||||
code.gitea.io/gitea/services/pull
|
code.gitea.io/gitea/services/pull
|
||||||
IsCommitStatusContextSuccess
|
IsCommitStatusContextSuccess
|
||||||
|
|
||||||
|
|
|
@ -740,17 +740,6 @@ type SaveTopicForm struct {
|
||||||
Topics []string `binding:"topics;Required;"`
|
Topics []string `binding:"topics;Required;"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeadlineForm hold the validation rules for deadlines
|
|
||||||
type DeadlineForm struct {
|
|
||||||
DateString string `form:"date" binding:"Required;Size(10)"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate validates the fields
|
|
||||||
func (f *DeadlineForm) Validate(req *http.Request, errs binding.Errors) binding.Errors {
|
|
||||||
ctx := context.GetValidateContext(req)
|
|
||||||
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
|
|
||||||
}
|
|
||||||
|
|
||||||
type CommitNotesForm struct {
|
type CommitNotesForm struct {
|
||||||
Notes string
|
Notes string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue