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.

21 lines
389 B

  1. package viewmodel
  2. import (
  3. "git.aiterp.net/AiteRP/aitestory/model"
  4. "git.aiterp.net/gisle/wrouter/auth"
  5. )
  6. type PageForm struct {
  7. Base
  8. Page model.Page
  9. Categories []model.PageCategory
  10. Operation string
  11. Error string
  12. TagInput string
  13. }
  14. func (pf *PageForm) Setup(user *auth.User) {
  15. pf.setupBase(user, "Create")
  16. pf.Categories = model.PageCategories
  17. pf.Page.Defaults()
  18. }