newCourse.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Create Course</title>
  6. <link rel="icon" type="img/ico" href="/images/favicon">
  7. <style>
  8. form{
  9. display: flex;
  10. flex-direction: column;
  11. }
  12. form > *{
  13. margin: 10px 0;
  14. }
  15. input[type=submit]{
  16. max-width: 250px;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <h1>Enter course details</h1>
  22. <form action="/learn/courses/new" method="post" encType="multipart/form-data">
  23. <label>Uploader ID
  24. <input name="uploaderId" type="text" required>
  25. </label>
  26. <label>Password
  27. <input name="password" type="password" required>
  28. </label>
  29. <label>Course Title
  30. <input name="title" type="text" required>
  31. </label>
  32. <label>ThumbNail (max 1mb)
  33. <input name="thumbNail" type="file" required>
  34. </label>
  35. <label>Description
  36. <textarea name="description" minlength="25" required></textarea>
  37. </label>
  38. <input type="submit" value="Submit">
  39. </form>
  40. </body>
  41. </html>