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.

49 lines
1.7 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Administration</title>
  5. <link rel="stylesheet" href="/css/admin.css">
  6. <link rel="stylesheet" href="/css/admin-new-post.css">
  7. <link rel="preconnect" href="https://fonts.gstatic.com">
  8. <link href='https://fonts.googleapis.com/css?family=Average|Montserrat' rel='stylesheet' type='text/css'>
  9. </head>
  10. <body>
  11. <header>
  12. <h3><a href="/admin">Admin</a></h3>
  13. <div class="right-header">
  14. <a href="/admin/logout">Logout</a>
  15. </div>
  16. </header>
  17. <main>
  18. <h2>Admin</h2>
  19. <div class="list-header">
  20. <h3>New Post</h3>
  21. </div>
  22. <div id="create-new-post">
  23. <form enctype="multipart/form-data" action="/admin/post/new" method="POST">
  24. <fieldset>
  25. <legend>New Post</legend>
  26. <label for="title">Title</label>
  27. <input type="text" name="title">
  28. <label for="subject">Subject</label>
  29. <select name="subject">
  30. <option value="Programming">Programming</option>
  31. <option value="Pentesting">Pentesting</option>
  32. </select>
  33. <label for="intro">Intro</label>
  34. <textarea name="intro" rows="6"></textarea><br/><br/>
  35. <label for="body">Body: </label>
  36. <textarea name="body" rows="20"></textarea><br/><br/>
  37. <label for="img">Main Image: </label>
  38. <input type="file" id="img" name="img" accept="image/*">
  39. <label for="files">More files:</label>
  40. <input type="file" id="files" name="files" multiple><br><br>
  41. <input type="submit" value="Submit">
  42. </fieldset>
  43. </form>
  44. </div>
  45. </main>
  46. </body>
  47. </html>