From dbb26cf066249daa46fea28b3cd9fa25075d356c Mon Sep 17 00:00:00 2001 From: Andrew Norman Date: Thu, 25 Jun 2026 10:49:56 -0500 Subject: [PATCH] Add markdown cheat sheet panel to entry form Add a right-hand side panel on the new/edit entry page with a quick reference for the markdown syntax supported by render_markdown (headings h1-h3, bold, italic, links, lists, quote, inline/fenced code, tables, divider; no images). The panel is sticky on large screens and hidden below the lg breakpoint where the Preview button still covers the need. Closes fermitools/SCD-Reporting#17 Co-Authored-By: Claude Opus 4.8 --- apps/entries/templates/entries/form.html | 12 +++- .../partials/_markdown_cheatsheet.html | 65 +++++++++++++++++++ 2 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 apps/entries/templates/entries/partials/_markdown_cheatsheet.html diff --git a/apps/entries/templates/entries/form.html b/apps/entries/templates/entries/form.html index a967021..44e7d13 100644 --- a/apps/entries/templates/entries/form.html +++ b/apps/entries/templates/entries/form.html @@ -2,7 +2,8 @@ {% block title %}{% if object %}Edit Entry{% else %}New Entry{% endif %} — SCD Reporting{% endblock %} {% block content %} -{# end two-column wrapper #} {{ entry_templates|default:"[]"|json_script:"entry-templates-data" }}