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.

36 lines
1.3 KiB

7 years ago
  1. {{ define "content" }}
  2. <article class="narrow">
  3. <h1 class="danger">Delete Page</h1>
  4. <form action="/page/delete/{{$.Page.ID}}", method="POST">
  5. <p class="danger">
  6. This is an irreversible action, so make sure that this is the correct page!
  7. </p>
  8. <ul>
  9. <li><b>ID:</b> {{$.Page.ID}}</li>
  10. <li><b>Name:</b> {{$.Page.Name}}</li>
  11. <li><b>Category:</b> {{$.Page.Category}}</li>
  12. <li><b>Published:</b> {{$.Page.PublishDate | formatDateLong}}</li>
  13. </ul>
  14. <input type="hidden" name="aft" value="{{$.User.SessionID}}" />
  15. <button type="submit">Delete Page</button>
  16. </article>
  17. {{ end }}
  18. {{ define "menu" }}
  19. <a href="/"><h1>Page</h1></a>
  20. {{ if eq $.User.ID $.Page.Author}}
  21. <ul>
  22. <li><a href="/page/edit/{{$.Page.ID}}"><div class="mg-icon">E</div><div class="mg-label">Edit</div></a></li>
  23. <li class="selected"><a href="/page/delete/{{$.Page.ID}}"><div class="mg-icon">X</div><div class="mg-label">Delete</div></a></li>
  24. </ul>
  25. {{ end }}
  26. <ul>
  27. <li><a href="/page/{{$.Page.ID}}"><div class="mg-icon">&lt;</div><div class="mg-label">Back</div></a></li>
  28. </ul>
  29. {{ end }}
  30. {{ define "head" }}
  31. <link rel="stylesheet" href="/ui/css/form.css" />
  32. {{ end }}