mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 19:48:36 +02:00
FEB email bugfix [litterbox] (#3930)
* Pass in summary context to omb submission confirmation email * Update email template spacing
This commit is contained in:
parent
3d09b65c16
commit
b250375de0
2 changed files with 22 additions and 32 deletions
|
@ -2,49 +2,31 @@
|
||||||
|
|
||||||
Requesting entity: {# if blockmakes a newline #}
|
Requesting entity: {# if blockmakes a newline #}
|
||||||
{{ domain_request|display_requesting_entity }}
|
{{ domain_request|display_requesting_entity }}
|
||||||
|
|
||||||
.gov domain:
|
.gov domain:
|
||||||
{{ domain_request.requested_domain.name }}
|
{{ domain_request.requested_domain.name }}
|
||||||
{% if requires_feb_questions %}
|
{% if requires_feb_questions %}
|
||||||
Meets naming requirements
|
Meets naming requirements:
|
||||||
{% if domain_request.feb_naming_requirements %}
|
{% if domain_request.feb_naming_requirements %}Yes{% else %}No. {{ domain_request.feb_naming_requirements_details }}{% endif %}{% endif %}{% if domain_request.alternative_domains.all %}
|
||||||
{{ domain_request.feb_naming_requirements }}
|
|
||||||
{% else %}
|
|
||||||
No
|
|
||||||
{{ domain_request.feb_naming_requirements_details }}
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% if domain_request.alternative_domains.all %}
|
|
||||||
Alternative domains:
|
Alternative domains:
|
||||||
{% for site in domain_request.alternative_domains.all %}{% spaceless %}{{ site.website }}{% endspaceless %}
|
{% for site in domain_request.alternative_domains.all %}{% spaceless %}{{ site.website }}{% endspaceless %}{% endfor %}{% endif %}
|
||||||
{% endfor %}{% endif %}
|
|
||||||
Purpose of your domain:
|
Purpose of your domain:
|
||||||
{% if requires_feb_questions %}
|
{% if requires_feb_questions %}{{ purpose_label }}
|
||||||
{{ purpose_label }}
|
|
||||||
{{ domain_request.purpose }}
|
{{ domain_request.purpose }}
|
||||||
|
|
||||||
Interagency initiative:
|
Interagency initiative:
|
||||||
{% if domain_request.is_interagency_initiative %}
|
{% if domain_request.is_interagency_initiative %}{{ domain_request.interagency_initiative_details }}{% else %}No{% endif %}
|
||||||
{{ domain_request.interagency_initiative_details }}
|
|
||||||
{% else %}
|
|
||||||
No
|
|
||||||
{% endif %}
|
|
||||||
Target time frame:
|
Target time frame:
|
||||||
{% if domain_request.has_target_time_frame %}
|
{% if domain_request.has_target_time_frame %}{{ domain_request.time_frame_details }}{% else %}No{% endif %}
|
||||||
{{ domain_request.time_frame_details }}
|
{% else %}{{ domain_request.purpose }}{% endif %}{% if domain_request.anything_else %}
|
||||||
{% else %}
|
|
||||||
No
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
{{ domain_request.purpose }}
|
|
||||||
{% endif %}
|
|
||||||
{% if domain_request.anything_else %}
|
|
||||||
Additional details:
|
Additional details:
|
||||||
{{ domain_request.anything_else }}
|
{{ domain_request.anything_else }}{% endif %}
|
||||||
{% endif %}
|
|
||||||
{% if recipient %}
|
{% if recipient %}
|
||||||
Your contact information:
|
Your contact information:
|
||||||
{% spaceless %}{% include "emails/includes/contact.txt" with contact=recipient %}{% endspaceless %}
|
{% spaceless %}{% include "emails/includes/contact.txt" with contact=recipient %}{% endspaceless %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
Administrators from your organization:{% for admin in domain_request.portfolio.portfolio_admin_users %}
|
Administrators from your organization:{% for admin in domain_request.portfolio.portfolio_admin_users %}
|
||||||
{% spaceless %}{% if admin != recipient %}{% include "emails/includes/contact.txt" with contact=admin %}{% endif %}{% endspaceless %}
|
{% spaceless %}{% if not recipient or admin != recipient %}{% include "emails/includes/contact.txt" with contact=admin %}{% endif %}{% endspaceless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -1002,7 +1002,15 @@ class Review(DomainRequestWizard):
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
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(
|
send_templated_email(
|
||||||
"emails/omb_submission_confirmation.txt",
|
"emails/omb_submission_confirmation.txt",
|
||||||
"emails/omb_submission_confirmation_subject.txt",
|
"emails/omb_submission_confirmation_subject.txt",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue