FEB email bugfix [litterbox] (#3930)

* Pass in summary context to omb submission confirmation email

* Update email template spacing
This commit is contained in:
Erin Song 2025-07-01 13:01:16 -07:00 committed by GitHub
parent 3d09b65c16
commit b250375de0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 32 deletions

View file

@ -1002,7 +1002,15 @@ class Review(DomainRequestWizard):
return
try:
context = {"domain_request": self.domain_request, "date": date.today()}
purpose_label = DomainRequest.FEBPurposeChoices.get_purpose_label(self.domain_request.feb_purpose_choice)
# requires_feb_questions and purpose_label used to pass into portfolio_domain_request_summary template
context = {
"domain_request": self.domain_request,
"date": date.today(),
"requires_feb_questions": True,
"purpose_label": purpose_label,
}
send_templated_email(
"emails/omb_submission_confirmation.txt",
"emails/omb_submission_confirmation_subject.txt",