diff --git a/common/tests/test_models.py b/common/tests/test_models.py
index 137705ca7..e65c34b0e 100644
--- a/common/tests/test_models.py
+++ b/common/tests/test_models.py
@@ -409,7 +409,7 @@ def test_get_description_dates(description_factory, date_ranges):
def test_trackedmodel_get_url(
trackedmodel_factory,
- valid_user_client,
+ client_with_current_workbasket,
mock_quota_api_no_data,
):
"""Verify get_url() returns something sensible and doesn't crash."""
@@ -428,7 +428,7 @@ def test_trackedmodel_get_url(
# Verify URL is not local
assert not urlparse(url).netloc
- response = valid_user_client.get(url)
+ response = client_with_current_workbasket.get(url)
assert response.status_code == 200
diff --git a/quotas/jinja2/includes/quotas/tabs/sub_quotas.jinja b/quotas/jinja2/includes/quotas/tabs/sub_quotas.jinja
index f8514ccba..3326bb00b 100644
--- a/quotas/jinja2/includes/quotas/tabs/sub_quotas.jinja
+++ b/quotas/jinja2/includes/quotas/tabs/sub_quotas.jinja
@@ -1,4 +1,12 @@
{% set table_rows = [] %}
+{% set table_head = [
+ {"text": "Order number"},
+ {"text": "Relationship type"},
+ {"text": "Co-efficient"},
+ ] %}
+{% if sub_quota_associations %}
+ {{ table_head.append({"text": "Actions"}) or "" }}
+{% endif %}
{% for object in sub_quota_associations %}
{% set sub_quota_link %}
Sub-quotas
+ The following sub-quota definitions exist for definition periods on Quota {{ quota.order_number}}.
Delete
{% endset %}
@@ -41,6 +42,7 @@
}) }}
{% elif main_quotas %}
Quota {{ quota.order_number }} has definition periods which are sub-quotas of the following quota definitions. To edit the associations, go to the main quota's data page.
{% for object in main_quotas %} {% set definition_link -%} {{ object.main_quota.sid }} @@ -48,11 +50,6 @@ {% set main_quota_link -%} {{ object.main_quota.order_number.order_number }} {% endset %} - {% set actions_html %} - Edit -