newCourse.html 1.2 KB

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