mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-11 06:54:48 +02:00
Add anything else view
This commit is contained in:
parent
d540337f07
commit
a946a5e629
2 changed files with 35 additions and 0 deletions
|
@ -128,6 +128,13 @@ class SecurityEmailForm(forms.Form):
|
||||||
label="Email",
|
label="Email",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
class AnythingElseForm(forms.Form):
|
||||||
|
anything_else = forms.CharField(
|
||||||
|
required=False,
|
||||||
|
label="Anything else we should know",
|
||||||
|
widget=forms.Textarea()
|
||||||
|
)
|
||||||
|
|
||||||
# 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
|
||||||
FORMS = [
|
FORMS = [
|
||||||
|
@ -140,6 +147,7 @@ FORMS = [
|
||||||
("your_contact", YourContactForm),
|
("your_contact", YourContactForm),
|
||||||
("other_contacts", OtherContactsForm),
|
("other_contacts", OtherContactsForm),
|
||||||
("security_email", SecurityEmailForm),
|
("security_email", SecurityEmailForm),
|
||||||
|
("anything_else", AnythingElseForm),
|
||||||
]
|
]
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -154,6 +162,7 @@ TEMPLATES = {
|
||||||
"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",
|
"security_email": "application_security_email.html",
|
||||||
|
"anything_else": "application_anything_else.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
|
||||||
|
@ -168,6 +177,7 @@ TITLES = {
|
||||||
"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",
|
"security_email": "Security email for public use",
|
||||||
|
"anything_else": "Anything else we should know?",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
25
src/registrar/templates/application_anything_else.html
Normal file
25
src/registrar/templates/application_anything_else.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<!-- Test page -->
|
||||||
|
{% extends 'application_form.html' %}
|
||||||
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
|
{% block form_content %}
|
||||||
|
|
||||||
|
<p id="instructions">Is there anything else we should know about your domain request?</p>
|
||||||
|
|
||||||
|
<form id="step__{{wizard.steps.current}}" class="usa-form usa-form--large" method="post">
|
||||||
|
<div class="usa-form-group">
|
||||||
|
{{ wizard.management_form }}
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
<div class="usa-character-count">
|
||||||
|
{{ wizard.form.anything_else|add_label_class:"usa-label" }}
|
||||||
|
{{ wizard.form.anything_else|add_class:"usa-textarea usa-character-count__field"|attr:"aria-describedby:instructions"|attr:"maxlength=500" }}
|
||||||
|
<span class="usa-character-count__message" id="with-hint-textarea-info with-hint-textarea-hint"> You can enter up to 500 characters </span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue