mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-10 06:24:45 +02:00
Add security email view
This commit is contained in:
parent
0b67dcc25e
commit
281cff4131
2 changed files with 29 additions and 0 deletions
|
@ -122,6 +122,11 @@ class OtherContactsForm(forms.Form):
|
|||
email = forms.EmailField(label="Email")
|
||||
phone = forms.CharField(label="Phone")
|
||||
|
||||
class SecurityEmailForm(forms.Form):
|
||||
email = forms.EmailField(
|
||||
required=False,
|
||||
label="Email",
|
||||
)
|
||||
|
||||
# List of forms in our wizard. Each entry is a tuple of a name and a form
|
||||
# subclass
|
||||
|
@ -134,6 +139,7 @@ FORMS = [
|
|||
("purpose", PurposeForm),
|
||||
("your_contact", YourContactForm),
|
||||
("other_contacts", OtherContactsForm),
|
||||
("security_email", SecurityEmailForm),
|
||||
]
|
||||
|
||||
# Dict to match up the right template with the right step. Keys here must
|
||||
|
@ -147,6 +153,7 @@ TEMPLATES = {
|
|||
"purpose": "application_purpose.html",
|
||||
"your_contact": "application_your_contact.html",
|
||||
"other_contacts": "application_other_contacts.html",
|
||||
"security_email": "application_security_email.html",
|
||||
}
|
||||
|
||||
# We need to pass our page titles as context to the templates, indexed
|
||||
|
@ -160,6 +167,7 @@ TITLES = {
|
|||
"purpose": "Purpose of your domain",
|
||||
"your_contact": "Your contact information",
|
||||
"other_contacts": "Other contacts for your domain",
|
||||
"security_email": "Security email for public use",
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue