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.

26 lines
472 B

  1. package viewmodel
  2. import (
  3. "git.aiterp.net/AiteRP/aitestory/model"
  4. "git.aiterp.net/gisle/wrouter/auth"
  5. )
  6. // PageCreate is the view model for the page create form.
  7. type PageCreate struct {
  8. Base
  9. IndexBase
  10. Page model.Page
  11. Error string
  12. TagInput string
  13. }
  14. // Setup sets the view model up.
  15. func (pf *PageCreate) Setup(user *auth.User) {
  16. pf.setupMenu()
  17. pf.setupBase(user, "Create", "/page/create")
  18. pf.Categories = model.PageCategories
  19. pf.Page.Defaults()
  20. }