form.jade 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. div.content
  2. div.container1
  3. form( method = 'POST' )
  4. - var course = course || false;
  5. - if (course)
  6. h1 Edit Course
  7. p
  8. | Use this form to edit a course.
  9. div.row
  10. div.label Course number
  11. div.field
  12. input( type = 'text', name = 'number', value = course.number )
  13. div.row
  14. div.label Course name
  15. div.field
  16. input( type = 'text', name = 'name', value = course.name )
  17. div.row
  18. div.label Course subject
  19. div.field
  20. input( type = 'text', name = 'subject', value = course.subject )
  21. div.row
  22. div.label Course department
  23. div.field
  24. input( type = 'text', name = 'department', value = course.department )
  25. //
  26. div.row
  27. div.label Instructor's Name
  28. div.field
  29. input( type = 'text', name = 'instructorName' )
  30. div.row
  31. div.label Instructor's Email
  32. div.field
  33. input( type = 'text', name = 'email' )
  34. div.row
  35. div( class = 'label')
  36.  
  37. div( class = 'field')
  38. button Save Course
  39. - else
  40. h1 Create New Course
  41. p
  42. | Use this form to create a new course.
  43. | After creating the course, you can create a lecture with in it.
  44. div.row
  45. div.label Course number
  46. div.field
  47. input( type = 'text', name = 'number' )
  48. div.row
  49. div.label Course name
  50. div.field
  51. input( type = 'text', name = 'name' )
  52. div.row
  53. div.label Course subject
  54. div.field
  55. input( type = 'text', name = 'subject' )
  56. div.row
  57. div.label Course department
  58. div.field
  59. input( type = 'text', name = 'department' )
  60. div.row
  61. div.label Instructor's Name
  62. div.field
  63. input( type = 'text', name = 'instructorName' )
  64. div.row
  65. div.label Instructor's Email
  66. div.field
  67. input( type = 'text', name = 'email' )
  68. div.row
  69. div( class = 'label')
  70.  
  71. div( class = 'field')
  72. button Create Course