- {% include "/v60/victim/vcl/index.html" %}
+
+ {% if (data['success'] == "yes") and (
+ data['successReason'] == "not-informed-after-call-1" or
+ data['successReason'] == "informed-after-call-1" or
+ data['successReason'] == "not-informed-after-call-2" or
+ data['successReason'] == "informed-after-call-2" or
+ data['successReason'] == "not-informed-after-call-3" or
+ data['successReason'] == "informed-after-call-3" or
+ data['successReason'] == "draft-approved-to-send" or
+ data['successReason'] == "not-contacted-logged"
+ ) %}
+
+
+
+
+ {% if (data['successReason'] == "not-informed-after-call-1") or (data['successReason'] == "informed-after-call-1") %}
+ Telephone call 1 logged
+ {% elif (data['successReason'] == "not-informed-after-call-2") or (data['successReason'] == "informed-after-call-2") %}
+ Telephone call 2 logged
+ {% elif (data['successReason'] == "not-informed-after-call-3") or (data['successReason'] == "informed-after-call-3") %}
+ Telephone call 3 logged
+ {% elif (data['successReason'] == "draft-approved-to-send") %}
+ Letter sent to CMS and approved to send
+ {% elif (data['successReason'] == "not-contacted-logged") %}
+ Reason for not contacting {{ data['victimForename'] }} {{ data['victimSurname'] }} logged
+ {% endif %}
+
+
+
+ {% endif %}
+ {% include "/v50/victim/pcd/index.html" %}
-
- {% include "/v60/victim/pre-trial/pre-trial-meeting/index.html" %}
+
+ {% include "/v50/victim/pre-trial/pre-trial-meeting/index.html" %}
-
- {% include "/v60/victim/other/index.html" %}
+
+ {% include "/v50/victim/other/index.html" %}
@@ -229,6 +260,72 @@
Contents
});
});
});
+
+ // Activate the appropriate sub-tab based on the secondaryNav query param
+ var secondaryNavMap = {
+ 'other': 'comms-other',
+ 'ptm': 'comms-ptm',
+ 'pcd': 'comms-pcd',
+ 'vcl': 'comms-pcd'
+ };
+ var params = new URLSearchParams(window.location.search);
+ var secondaryNav = params.get('secondaryNav');
+ var targetSubTab = secondaryNav && secondaryNavMap[secondaryNav];
+ if (targetSubTab) {
+ var targetLink = document.querySelector('[data-comms-tab="' + targetSubTab + '"]');
+ if (targetLink) {
+ targetLink.click();
+ }
+ }
+ })();
+
+
{% endblock %}