The backend for the AiteStory website
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.

23 lines
450 B

package viewmodel
import (
"git.aiterp.net/AiteRP/aitestory/model"
"git.aiterp.net/gisle/wrouter/auth"
)
// PageEdit is the view model for the page edit form.
type PageEdit struct {
Base
PageBase
Categories []model.PageCategory
Error string
TagInput string
}
// Setup sets the view model up.
func (pf *PageEdit) Setup(user *auth.User) {
pf.setupBase(user, "Edit", "/page/edit/"+pf.Page.ID)
pf.Categories = model.PageCategories
}