{% if outcome %}
{{ outcome.message }}
{% if outcome.where %}{{ outcome.where }}
{% endif %} {% for note in outcome.notes %}{{ note }}
{% endfor %} {% if outcome.resolution is for_the_window %}{{ outcome.resolution }}
{% endif %} {# Inside the note's own form, so the button posts to Index by its own address rather than by a form of its own. #} {% if outcome.index_after %}{% endif %} {% if outcome.clears %} {# A note was written: the strip and the pane say so at once (#457). #} {% include "shell-redraws.html" %} {% for element, route in branch_redraws %}{% endfor %} {# The text and the title belong to the note just written, so both are emptied: a title left behind named the next note too. The group is where notes are filed, so it stays for the next one. #} {# `autofocus`, which htmx honours on a swap: the submit button was disabled while the write ran, so focus had nowhere to go but the page behind the dialog. Back in the box, the next note can begin. #} {% endif %} {% endif %}