{# Shared answer composer: paste/drop/pick screenshots, preview them, and (when editable) the answer textarea itself — all inside one container so a paste anywhere in here (focus in the textarea included) is caught by a single listener in static/app.js (App.initAttachmentComposer). Expected context variables, set by the including template before `{% include %}`: composer_decision_id int, required composer_attachments list of attachment rows (id, filename, ...), required composer_editable bool — show the add-control + answer form composer_show_headings bool — show the visible "Your answer" label (detail page) composer_thumb_compact bool — use the smaller thumbnail size (index cards) composer_id_suffix string — appended to the textarea id, for uniqueness when several composers render on one page composer_placeholder string — textarea placeholder (optional) composer_submit_label string — submit button text (only used if editable) composer_decision the decision dict (parsed options) — enables the one-click quick answers; the textarea then doubles as their note composer_next path to return to after answering (optional) #} {% from "_macros.html" import icon %} {% macro thumbs(attachments, editable, compact) -%} {%- for a in attachments -%}
{%- endfor -%} {%- endmacro %}