Skip to content

Commit

Permalink
Merge branch 'fix/ehcco-schools-api' into 'master'
Browse files Browse the repository at this point in the history
EHCCo schools api

See merge request buckinghamshire-council/bc!738
  • Loading branch information
KIRA009 committed Aug 14, 2024
2 parents 9759c55 + 534194b commit 2ae7783
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 78.2 (2024-08-14)

Compare: <https://git.torchbox.com/buckinghamshire-council/bc/compare/78.1...78.2>

- Fix ehcco api calls being made to the wrong endpoint

## 78.1 (2024-08-13)

Compare: <https://git.torchbox.com/buckinghamshire-council/bc/compare/78.0...78.1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!-- Search widget for finding the EHC coordinator for a school
The context variables available to this template are:
- get_matching_schools_url: URL to the API endpoint that returns matching schools,
use with the 'q' query parameter to search
- get_corresponding_ehc_co_url: URL to the API endpoint that returns the corresponding EHC coordinator for a school,
use with the 'school_id' query parameter to get the coordinator
-->
{% comment %}
Search widget for finding the EHC coordinator for a school
The context variables available to this template are:
- get_matching_schools_url: URL to the API endpoint that returns matching schools,
use with the 'q' query parameter to search
- get_corresponding_ehc_co_url: URL to the API endpoint that returns the corresponding EHC coordinator for a school,
use with the 'school_id' query parameter to get the coordinator
{% endcomment %}

<div class="ehcco-search is-hidden" data-ehcco-search data-matching-schools-url="{{ get_matching_schools_url|escapejs }}" data-ehc-co-url="{{ get_corresponding_ehc_co_url|escapejs }}">
<div class="ehcco-search__container">
Expand Down Expand Up @@ -37,4 +38,4 @@ <h2 class="ehcco-search__heading heading heading--s">Find your EHC coordinator b
<li>Wycombe: <a href="mailto:senwyc@buckinghamshire.gov.uk">senwyc@buckinghamshire.gov.uk</a></li>
</ul>
</div>
</noscript>
</noscript>
1 change: 1 addition & 0 deletions bc/utils/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ def get_context(self, value, parent_context=None):
context["get_corresponding_ehc_co_url"] = reverse(
"family_information:get_corresponding_ehc_co"
)
return context


class Directory(TextChoices):
Expand Down

0 comments on commit 2ae7783

Please sign in to comment.