Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
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.

53 lines
2.0 KiB

  1. <div class="col-md-6">
  2. <div class="blogPost">
  3. <h1 class="text-center">Server Controls</h1>
  4. <div class="text-center">
  5. <form action="/admin" method="post">
  6. <input type="submit" name="clearCache" value="Clear Cache" class="btn btn-lg btn-secondary" />
  7. <input type="hidden" name="clear_cache" value="true">
  8. </form>
  9. <br>
  10. <form action="/admin" method="post">
  11. <input type="submit" name="gitPull" value="Pull from Git" class="btn btn-lg btn-secondary" />
  12. <input type="hidden" name="git_pull" value="true">
  13. </form>
  14. </div>
  15. </div>
  16. <br>
  17. <div class="blogPost">
  18. <h1 class="text-center">New Post</h1>
  19. <form action="/admin" method ="post" class="p-2">
  20. <!-- Post category -->
  21. <div class="form-group">
  22. <input class="form-control" type="text" name="add_post_category" required>
  23. <label class="w3-label w3-validate">Category</label>
  24. </div>
  25. <!-- Post name -->
  26. <div class="form-group">
  27. <input class="form-control" type="text" name="add_post_name" required>
  28. <label class="w3-label w3-validate">Name</label>
  29. </div>
  30. <!-- Post header picture -->
  31. <div class="form-group">
  32. <input class="form-control" type="text" name="add_post_picture" value="n/a" required>
  33. <label class="w3-label w3-validate">Picture</label>
  34. </div>
  35. <!-- Post date -->
  36. <div class="form-group">
  37. <input class="w3-input" type="date" name="add_post_date" required>
  38. <label class="w3-label w3-validate">Date</label>
  39. </div>
  40. <div class="text-center">
  41. <input type="submit" name="submit" value="Add"
  42. class="btn btn-lg btn-secondary"/>
  43. </div>
  44. </form>
  45. </div>
  46. </div>