mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 10:46:06 +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")
|
email = forms.EmailField(label="Email")
|
||||||
phone = forms.CharField(label="Phone")
|
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
|
# List of forms in our wizard. Each entry is a tuple of a name and a form
|
||||||
# subclass
|
# subclass
|
||||||
|
@ -134,6 +139,7 @@ FORMS = [
|
||||||
("purpose", PurposeForm),
|
("purpose", PurposeForm),
|
||||||
("your_contact", YourContactForm),
|
("your_contact", YourContactForm),
|
||||||
("other_contacts", OtherContactsForm),
|
("other_contacts", OtherContactsForm),
|
||||||
|
("security_email", SecurityEmailForm),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Dict to match up the right template with the right step. Keys here must
|
# Dict to match up the right template with the right step. Keys here must
|
||||||
|
@ -147,6 +153,7 @@ TEMPLATES = {
|
||||||
"purpose": "application_purpose.html",
|
"purpose": "application_purpose.html",
|
||||||
"your_contact": "application_your_contact.html",
|
"your_contact": "application_your_contact.html",
|
||||||
"other_contacts": "application_other_contacts.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
|
# We need to pass our page titles as context to the templates, indexed
|
||||||
|
@ -160,6 +167,7 @@ TITLES = {
|
||||||
"purpose": "Purpose of your domain",
|
"purpose": "Purpose of your domain",
|
||||||
"your_contact": "Your contact information",
|
"your_contact": "Your contact information",
|
||||||
"other_contacts": "Other contacts for your domain",
|
"other_contacts": "Other contacts for your domain",
|
||||||
|
"security_email": "Security email for public use",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
21
src/registrar/templates/application_security_email.html
Normal file
21
src/registrar/templates/application_security_email.html
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<!-- Test page -->
|
||||||
|
{% extends 'application_form.html' %}
|
||||||
|
{% load widget_tweaks %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
|
{% block form_content %}
|
||||||
|
|
||||||
|
<p id="instructions"> We strongly recommend that you provide a security email. This email will allow the public to report observed or suspected security issues on your domain. <strong> Security emails are made public.</strong> We recommend using an alias, like security@<domain.gov>.</p>
|
||||||
|
|
||||||
|
<form class="usa-form usa-form--large" id="step__{{wizard.steps.current}}" method="post">
|
||||||
|
{{ wizard.management_form }}
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
{{ wizard.form.email|add_label_class:"usa-label" }}
|
||||||
|
{{ wizard.form.email|add_class:"usa-input"|attr:"aria-describedby:instructions" }}
|
||||||
|
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue