diff src/edit_course.html.luan @ 67:1793510fa36a

course description
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 22 Aug 2025 10:28:13 -0600
parents 285029931499
children a366d27db8f1
line wrap: on
line diff
--- a/src/edit_course.html.luan	Fri Aug 22 07:25:35 2025 -0600
+++ b/src/edit_course.html.luan	Fri Aug 22 10:28:13 2025 -0600
@@ -29,6 +29,7 @@
 			ai_first_message = ""
 			tts_instructions = ""
 			has_ruby = false
+			description = ""
 		}
 	end
 	Io.stdout = Http.response.text_writer()
@@ -66,6 +67,11 @@
 			<h4>Course name</h4>
 			<input type=text required name=name value="<%=html_encode(course.name)%>">
 
+			<h4>Description</h4>
+			<textarea required name=description oninput="fixTextarea(event.target)"><%=html_encode(course.description)%></textarea>
+
+			<br>
+
 			<p><label clickable><input type=checkbox name=has_ruby <%= course.has_ruby and "checked" or "" %> > Has pronunciation like {japanese|romaji}</label></p>
 
 			<h4>AI system prompt - chat instructions</h4>