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.

30 lines
1.2 KiB

  1. <div class="col-md-6 blogPost">
  2. <h1 class="text-center">New Post</h1>
  3. <form action="/admin/" method ="post" class="p-2">
  4. <!-- Post category -->
  5. <div class="form-group">
  6. <input class="form-control" type="text" name="add_post_category" required>
  7. <label class="w3-label w3-validate">Category</label>
  8. </div>
  9. <!-- Post name -->
  10. <div class="form-group">
  11. <input class="form-control" type="text" name="add_post_name" required>
  12. <label class="w3-label w3-validate">Name</label>
  13. </div>
  14. <!-- Post header picture -->
  15. <div class="form-group">
  16. <input class="form-control" type="text" name="add_post_picture" value="n/a" required>
  17. <label class="w3-label w3-validate">Picture</label>
  18. </div>
  19. <!-- Post date -->
  20. <div class="form-group">
  21. <input class="w3-input" type="date" name="add_post_date" required>
  22. <label class="w3-label w3-validate">Date</label>
  23. </div>
  24. <div class="text-center">
  25. <input type="submit" name="submit" value="Add"
  26. class="btn btn-lg btn-secondary"/>
  27. </div>
  28. </form>
  29. </div>