Mercurial Hosting > lang
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 66:2ff1f78bb13e | 67:1793510fa36a |
|---|---|
| 27 name = "" | 27 name = "" |
| 28 ai_system_prompt = "" | 28 ai_system_prompt = "" |
| 29 ai_first_message = "" | 29 ai_first_message = "" |
| 30 tts_instructions = "" | 30 tts_instructions = "" |
| 31 has_ruby = false | 31 has_ruby = false |
| 32 description = "" | |
| 32 } | 33 } |
| 33 end | 34 end |
| 34 Io.stdout = Http.response.text_writer() | 35 Io.stdout = Http.response.text_writer() |
| 35 %> | 36 %> |
| 36 <!doctype html> | 37 <!doctype html> |
| 64 <h3><%= course.language_name() %></h3> | 65 <h3><%= course.language_name() %></h3> |
| 65 | 66 |
| 66 <h4>Course name</h4> | 67 <h4>Course name</h4> |
| 67 <input type=text required name=name value="<%=html_encode(course.name)%>"> | 68 <input type=text required name=name value="<%=html_encode(course.name)%>"> |
| 68 | 69 |
| 70 <h4>Description</h4> | |
| 71 <textarea required name=description oninput="fixTextarea(event.target)"><%=html_encode(course.description)%></textarea> | |
| 72 | |
| 73 <br> | |
| 74 | |
| 69 <p><label clickable><input type=checkbox name=has_ruby <%= course.has_ruby and "checked" or "" %> > Has pronunciation like {japanese|romaji}</label></p> | 75 <p><label clickable><input type=checkbox name=has_ruby <%= course.has_ruby and "checked" or "" %> > Has pronunciation like {japanese|romaji}</label></p> |
| 70 | 76 |
| 71 <h4>AI system prompt - chat instructions</h4> | 77 <h4>AI system prompt - chat instructions</h4> |
| 72 <textarea required name=ai_system_prompt oninput="fixTextarea(event.target)"><%=html_encode(course.ai_system_prompt)%></textarea> | 78 <textarea required name=ai_system_prompt oninput="fixTextarea(event.target)"><%=html_encode(course.ai_system_prompt)%></textarea> |
| 73 | 79 |
