{%extends"base.html"%}{%blocktitle%}edit {{filename}} · euler{%endblock%}{%blockcontent%}<sectionclass="panel editor editor-fill"><divclass="editor-head"><h1>edit <code>{{filename}}</code></h1>{%ifstatus%}<pclass="status {{'ok'ifokelse'err'}}">{{status}}</p>{%endif%}{%ifdiagnostics%}<ulclass="diagnostics">{%fordindiagnostics%}<liclass="diag-{{d.severity}}"><code>{{d.line}}:{{d.col}}</code><spanclass="diag-sev">{{d.severity}}</span>{{d.message}}</li>{%endfor%}</ul>{%endif%}</div>{# The buffer always shows what is (or would be) stored: a save echoes the gate's canonical content back. Save lives in the Actions menu (and ⌘/Ctrl-S); no in-form button. data-cm enhances this into CodeMirror on JS (site.js lazy-loads it); with no JS the plain textarea still edits and submits. #}{# `action_path` lets the article editor reuse this form; the solution editor leaves it unset and keeps its problem-scoped route. #}{%setpost_to=action_pathifaction_pathelse'/edit/solutions/%04d/%s'%(number,filename)%}<formclass="editor-form"hx-post="{{post_to}}"hx-target="#content"hx-swap="innerHTML"method="post"action="{{post_to}}"><textareaclass="editor-buffer"name="content"data-cmdata-language="{{language}}"spellcheck="false"autocomplete="off"autocapitalize="off">{{text}}</textarea></form><pclass="muted editor-hint">Save with <strong>Actions ▸ Save</strong> or<kbd>⌘/Ctrl-S</kbd> — every save passes the validation gate (Python auto-fixed& flake8-checked, C compiled, JSON re-indented, HTML sanitised).</p></section>{%endblock%}