{% load i18n %}{% comment %} The confirmation page's target and button, and what an htmx request for it is answered with. There is no form to fill in, so the post carries the token and the button alone, and the URL to return to where the view reads one. A question is shown by its message, which is the one entry of ``errors`` it brings: the page builds no control from a schema. A page serving actions renders one button per action, named by its key, and an unavailable action's reason with its button disabled, a refused one's button disabled with no reason (test_the_confirm_page under TestARefusedActionIsDisabledWithNoReason fails without that or), the page's own reason not repeated (test_the_confirm_page_disables_every_button) and given only when unmet (test_an_available_confirmation_gives_no_reason). A post answered with a file is never boosted: an htmx request cannot save it. {% endcomment %}{% include "django_spec_html/target.html" %} {% if unavailable and not view.actions %}
{{ unavailable.reason }}
{% endif %} {% for name, why in action_buttons %}{% if why %}{{ why.reason }}
{% endif %}{% endfor %}{% if requested_input %}{{ requested_input.message }}
{% elif errors %}