You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
472 B
26 lines
472 B
package viewmodel
|
|
|
|
import (
|
|
"git.aiterp.net/AiteRP/aitestory/model"
|
|
"git.aiterp.net/gisle/wrouter/auth"
|
|
)
|
|
|
|
// PageCreate is the view model for the page create form.
|
|
type PageCreate struct {
|
|
Base
|
|
IndexBase
|
|
|
|
Page model.Page
|
|
Error string
|
|
TagInput string
|
|
}
|
|
|
|
// Setup sets the view model up.
|
|
func (pf *PageCreate) Setup(user *auth.User) {
|
|
pf.setupMenu()
|
|
pf.setupBase(user, "Create", "/page/create")
|
|
|
|
pf.Categories = model.PageCategories
|
|
|
|
pf.Page.Defaults()
|
|
}
|