{% macro render_modal(id, title, action_url, render_modal_form, action_text = none, action_class = "btn-primary", size_class = "", posts = true) %} {# posts=false marks a JS-handled form (submitted via fetch, not the server): it renders no method/action and is flagged data-js-form so modal.js stops the default submit — so a missed preventDefault can't navigate the page. #} {% endmacro %}