blogpost_editor.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {{ define "blogpost_editor.html" }}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="/api/v1/style/bootstrap.min.css">
  8. <link rel="stylesheet" href="/api/v1/style/mdb/mdb.min.css">
  9. </head>
  10. <body style="background-color: rgb(56, 56, 56);">
  11. {{ template "navigation.html" .navigation }}
  12. <div class="container-fluid p-2 position-relative" style="width: 80vw; max-width: 80%; background-color: rgb(22, 22, 22);">
  13. <div class="container">
  14. <div class="row">
  15. <div class="col-sm"></div>
  16. <div class="container position-relative">
  17. <div class="col m-5">
  18. <div id="response"></div>
  19. <form method={{ .HttpMethod }} hx-post="/admin/posts" hx-ext="json-enc" hx-target="#response">
  20. <div class="row" style="background-color: rgb(22, 22, 22); color: white; height: fit-content; font-size: larger; font-family: monospace;">
  21. <a>Post Identifier:</a>
  22. <textarea name="identifier" style="background-color: rgb(73, 73, 73); color: white;">{{ .Ident }}</textarea>
  23. </div>
  24. <div class="row" style="background-color: rgb(22, 22, 22); color: white; height: fit-content; font-size: larger; font-family: monospace;">
  25. <a>Category:</a>
  26. <select name="category" class="form-select" style="background-color: rgb(73, 73, 73); color: white; height: fit-content; font-size: larger; font-family: monospace;">
  27. <option selected>{{ .DefaultTopic }}</option>
  28. {{ range .Topics }}
  29. <option value={{ . }}>{{ . }}</option>
  30. {{ end }}
  31. </select>
  32. </div>
  33. <div class="row" style="background-color: rgb(22, 22, 22); color: white; height: fit-content; font-size: large; font-family: monospace;">
  34. <a>Time of creation:</a>
  35. <textarea name="created" style="background-color: rgb(73, 73, 73); color: white;">{{ .Created }}</textarea>
  36. </div>
  37. <div class="row" style="background-color: rgb(22, 22, 22); color: white; height: fit-content; font-size: larger; font-family: monospace;">
  38. <a>Post Body:</a>
  39. <textarea name="body" rows="30" wrap="soft" style="background-color: rgb(73, 73, 73); color: white;">{{ .Body }}</textarea>
  40. </div>
  41. <button type="submit">Send</button>
  42. </form>
  43. </div>
  44. </div>
  45. <div class="col-sm"></div>
  46. </div>
  47. </div>
  48. </div>
  49. </body>
  50. </html>
  51. {{ end }}