Lee Morgan 4 лет назад
Родитель
Сommit
c56f122a78
2 измененных файлов с 5 добавлено и 0 удалено
  1. 1 0
      controllers/learn.js
  2. 4 0
      views/learn/newAnswer.html

+ 1 - 0
controllers/learn.js

@@ -314,6 +314,7 @@ module.exports = {
         password: String
         lecture: String (Lecture id)
         question: String (Question id)
+        name: String
         content: String
     }
     redirect: /learn/lecture/:id

+ 4 - 0
views/learn/newAnswer.html

@@ -36,6 +36,10 @@
                 <input name="question" type="text" required>
             </label>
 
+            <label>Name
+                <input name="name" type="text" required>
+            </label>
+
             <label>Content
                 <textarea name="content" required></textarea>
             </label>