fixed title on section on review page for when no other contacts exist

This commit is contained in:
David Kennedy 2024-01-04 10:20:36 -05:00
parent b15c21c398
commit b2c5a9ef28
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -540,6 +540,11 @@ class Review(ApplicationWizard):
context = super().get_context_data() context = super().get_context_data()
context["Step"] = Step.__members__ context["Step"] = Step.__members__
context["application"] = self.application context["application"] = self.application
# if application has no other contacts, need to change title of Step.OTHER_CONTACTS
if not self.application.has_other_contacts():
titles = context["form_titles"]
titles[Step.OTHER_CONTACTS] = _("No other employees from your organization?")
context["form_titles"] = titles
return context return context
def goto_next_step(self): def goto_next_step(self):