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

  1. package viewmodel
  2. import (
  3. "git.aiterp.net/AiteRP/aitestory/model"
  4. "git.aiterp.net/gisle/wrouter/auth"
  5. )
  6. // PageEdit is the view model for the page edit form.
  7. type PageEdit struct {
  8. Base
  9. PageBase
  10. Categories []model.PageCategory
  11. Error string
  12. TagInput string
  13. }
  14. // Setup sets the view model up.
  15. func (pf *PageEdit) Setup(user *auth.User) {
  16. pf.setupBase(user, "Edit", "/page/edit/"+pf.Page.ID)
  17. pf.Categories = model.PageCategories
  18. }