ux(inquiry): visible hint when Resolve is disabled until contact_status set

The department-side Resolve button is disabled (greyed out) until the
department records a patient contact outcome — the contact_status gate
in inquiry_change_status enforces this. Previously only a hover tooltip
explained why; now an inline amber hint appears next to the actions bar
so the reason is immediately visible.
This commit is contained in:
ismail 2026-07-20 22:04:24 +03:00
parent c8db98880a
commit 185cc67c10

View File

@ -60,6 +60,13 @@
</select> </select>
</form> </form>
{% if inquiry.status == 'in_progress' and inquiry.contact_status == 'not_contacted' %}
<span class="inline-flex items-center gap-1.5 text-xs text-amber-700 bg-amber-50 border border-amber-200 rounded-lg px-2.5 py-1.5">
<i data-lucide="info" class="w-3.5 h-3.5"></i>
{% trans "Record a contact outcome above before resolving." %}
</span>
{% endif %}
{% if inquiry.status == 'in_progress' %} {% if inquiry.status == 'in_progress' %}
<!-- Mark Resolved (requires a patient contact outcome first) --> <!-- Mark Resolved (requires a patient contact outcome first) -->
<form method="post" action="{% url 'inquiries:inquiry_change_status' inquiry.pk %}" onsubmit="return confirm('{% filter escapejs %}{% trans "Mark this inquiry as resolved?" %}{% endfilter %}')"> <form method="post" action="{% url 'inquiries:inquiry_change_status' inquiry.pk %}" onsubmit="return confirm('{% filter escapejs %}{% trans "Mark this inquiry as resolved?" %}{% endfilter %}')">