Fix hx-post URL in prior card template for correct case number handling
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<a class="dropdown-item {% if idx == current %}active{% endif %}" href="{% url 'atlas:collection_case_view_take_user' pk=collection.pk case_number=idx %}">
|
<a class="dropdown-item {% if idx == current %}active{% endif %}" href="{% url 'atlas:collection_case_view_take_user' pk=collection.pk case_number=idx %}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Case {{ forloop.counter }}: {{ cd.case.title|default:cd.case.pk|truncatechars:60 }}
|
Case {{ forloop.counter }}: {{ cd.case.title|default:cd.case.pk|truncatechars:60 }}
|
||||||
</a>
|
</a>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
{% if not added %}
|
{% if not added %}
|
||||||
<form class="row g-2"
|
<form class="row g-2"
|
||||||
{% if case_number %}
|
{% if case_number %}
|
||||||
hx-post="{% url 'atlas:collection_case_priors' collection.id case_number=case_number %}"
|
hx-post="{% url 'atlas:collection_case_priors' collection.id case_number %}"
|
||||||
{% else %}
|
{% else %}
|
||||||
hx-post="{% url 'atlas:collection_case_priors_legacy' collection.id casedetail.case.pk %}"
|
hx-post="{% url 'atlas:collection_case_priors_legacy' collection.id casedetail.case.pk %}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user