diff src/edit_course.html.luan @ 27:176a182c02cf

add view_course
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 01 Aug 2025 20:08:13 -0600
parents 3a80ddafe5a4
children d34d709a7a8e
line wrap: on
line diff
--- a/src/edit_course.html.luan	Fri Aug 01 17:12:03 2025 -0600
+++ b/src/edit_course.html.luan	Fri Aug 01 20:08:13 2025 -0600
@@ -39,12 +39,17 @@
 			textarea {
 				display: block;
 			}
+			input[type=text],
+			textarea {
+				width: 100%;
+			}
 			h4 {
 				margin-top: 22px;
 				margin-bottom: 4px;
 			}
 			input[type=submit] {
 				margin-top: 22px;
+				margin-bottom: 22px;
 			}
 		</style>
 	</head>
@@ -59,15 +64,19 @@
 			<h3><%= course.language_name() %></h3>
 
 			<h4>Course name</h4>
-			<input required name=name value="<%=html_encode(course.name)%>">
+			<input type=text required name=name value="<%=html_encode(course.name)%>">
 
 			<h4>AI system prompt</h4>
-			<textarea required name=ai_system_prompt><%=html_encode(course.ai_system_prompt)%></textarea>
+			<textarea required name=ai_system_prompt rows=10><%=html_encode(course.ai_system_prompt)%></textarea>
 
 			<h4>AI first message (optional)</h4>
 			<textarea required name=ai_first_message><%=html_encode(course.ai_first_message or "")%></textarea>
 
 			<input type=submit>
+
+			<hr>
+
+			<p>Text areas take <a href="/tools/markdown.html">Markdown</a>.  AI generally recognizes Markdown.</p>
 		</form>
 	</body>
 </html>