mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 12:39:43 +02:00
Update variables and context
This commit is contained in:
parent
90f05f945e
commit
bbe030ea36
2 changed files with 5 additions and 6 deletions
|
@ -1,9 +1,7 @@
|
||||||
{% autoescape off %}{# In a text file, we don't want to have HTML entities escaped #}
|
{% autoescape off %}{# In a text file, we don't want to have HTML entities escaped #}
|
||||||
Hi {{ incoming-email-here }}.
|
Hi.
|
||||||
# We don't know their first name until they make an account, we only know their email
|
|
||||||
# Stuck here because we only get their email from the form, so can't pull above?
|
|
||||||
|
|
||||||
{{ contact-of-whoever-owns-usually-admin-or-maybe-security-contact }} has added you as a manager on {{ domain.name }}.
|
{{ first_name }} has added you as a manager on {{ domain.name }}.
|
||||||
|
|
||||||
YOU NEED A LOGIN.GOV ACCOUNT
|
YOU NEED A LOGIN.GOV ACCOUNT
|
||||||
You’ll need a Login.gov account to manage your .gov domain. Login.gov provides a simple and secure process for signing into many government services with one account. If you don’t already have one, follow these steps to create your Login.gov account <https://login.gov/help/get-started/create-your-account/>.
|
You’ll need a Login.gov account to manage your .gov domain. Login.gov provides a simple and secure process for signing into many government services with one account. If you don’t already have one, follow these steps to create your Login.gov account <https://login.gov/help/get-started/create-your-account/>.
|
||||||
|
|
|
@ -17,6 +17,7 @@ from django.views.generic.edit import FormMixin
|
||||||
from registrar.models import (
|
from registrar.models import (
|
||||||
Domain,
|
Domain,
|
||||||
DomainInvitation,
|
DomainInvitation,
|
||||||
|
DomainApplication,
|
||||||
User,
|
User,
|
||||||
UserDomainRole,
|
UserDomainRole,
|
||||||
)
|
)
|
||||||
|
@ -335,6 +336,7 @@ class DomainAddUserView(DomainPermissionView, FormMixin):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# created a new invitation in the database, so send an email
|
# created a new invitation in the database, so send an email
|
||||||
|
dapplication = DomainApplication.objects.filter(approved_domain__name=self.object.name)
|
||||||
try:
|
try:
|
||||||
send_templated_email(
|
send_templated_email(
|
||||||
"emails/domain_invitation.txt",
|
"emails/domain_invitation.txt",
|
||||||
|
@ -343,8 +345,7 @@ class DomainAddUserView(DomainPermissionView, FormMixin):
|
||||||
context={
|
context={
|
||||||
"domain_url": self._domain_abs_url(),
|
"domain_url": self._domain_abs_url(),
|
||||||
"domain": self.object,
|
"domain": self.object,
|
||||||
# "user": the original person or contact
|
"first_name": dapplication.first().creator,
|
||||||
# "email": email of person we want to add
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
except EmailSendingError:
|
except EmailSendingError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue