diff --git a/config/settings.py b/config/settings.py index c34c36f4e1..0ec0fec335 100644 --- a/config/settings.py +++ b/config/settings.py @@ -157,6 +157,13 @@ / 'dist' / 'components' / 'notification-banner', + ROOT_DIR + / 'node_modules' + / '@uktrade' + / 'great-design-system' + / 'dist' + / 'components' + / 'notification-banner', ], 'APP_DIRS': True, 'OPTIONS': { diff --git a/contact/templates/domestic/contact/export-support/base.html b/contact/templates/domestic/contact/export-support/base.html index c61db27a3f..4604bc6069 100644 --- a/contact/templates/domestic/contact/export-support/base.html +++ b/contact/templates/domestic/contact/export-support/base.html @@ -40,14 +40,7 @@
{{ step_text }}
{% block content_top %}{% endblock %} {% if confirmation %} - + {% include '_notification-banner.html' with type='success' titleText=heading_text text=strapline_text %} {% else %}diff --git a/export_academy/templates/export_academy/booking_success.html b/export_academy/templates/export_academy/booking_success.html index 981483f765..4583a97ec5 100755 --- a/export_academy/templates/export_academy/booking_success.html +++ b/export_academy/templates/export_academy/booking_success.html @@ -19,66 +19,31 @@ {% endwith %} {% endblock %} -
+ Your registration details have been successfully updated. +
+{% else %} +Event details:
+ + ++ We've emailed a + {% if booking.status == 'Confirmed' %} + booking + {% else %} + cancellation + {% endif %} + confirmation to {{ booking.registration.email }} +
+ + {% if booking.status == 'Confirmed' %} + {% event_list_buttons event %} + {% endif %} +{% endif %} diff --git a/export_academy/views.py b/export_academy/views.py index b17ba8f1ad..fb1aeed30c 100644 --- a/export_academy/views.py +++ b/export_academy/views.py @@ -17,6 +17,7 @@ JsonResponse, ) from django.shortcuts import get_list_or_404, get_object_or_404, redirect +from django.template.loader import render_to_string from django.urls import reverse, reverse_lazy from django.utils.decorators import method_decorator from django.utils.text import get_valid_filename @@ -217,6 +218,17 @@ def get_context_data(self, **kwargs): if 'form' in kwargs: # pass back errors from form_invalid ctx['hcsat_form'] = kwargs['form'] + # Create notification context with all required variables + notification_context = { + 'editing_registration': ctx.get('editing_registration'), + 'event': ctx.get('event'), + 'booking': ctx.get('booking'), + 'heading_text': ctx.get('heading'), + 'text': render_to_string('export_academy/includes/booking_success_content.html', ctx, request=self.request), + } + + ctx.update(notification_context) # Update the context directly + return ctx def post(self, request, *args, **kwargs): diff --git a/international_online_offer/templates/eyb/about_your_business.html b/international_online_offer/templates/eyb/about_your_business.html index fecddacc8e..0512f10ce8 100644 --- a/international_online_offer/templates/eyb/about_your_business.html +++ b/international_online_offer/templates/eyb/about_your_business.html @@ -12,19 +12,7 @@ {% if request.GET.signup %}Keep your details safe in case you need to sign back in.
' %}Continue telling us about your business.
' %}We\'ve created your guide from everything you\'ve told us about your business in our '|add:notification_content|add:' sector. If anything changes, you can update your details
' %} + {% include '_notification-banner.html' with type='success' titleText='Success' html=banner_html %} + {% endwith %} + {% endwith %}