mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
Add review view
This commit is contained in:
parent
fae6d49b02
commit
74c11cc231
3 changed files with 31 additions and 1 deletions
|
@ -138,6 +138,9 @@ class AnythingElseForm(forms.Form):
|
||||||
class RequirementsForm(forms.Form):
|
class RequirementsForm(forms.Form):
|
||||||
agree_check = forms.BooleanField(label="I read and agree to the .gov domain requirements.")
|
agree_check = forms.BooleanField(label="I read and agree to the .gov domain requirements.")
|
||||||
|
|
||||||
|
class ReviewForm(forms.Form):
|
||||||
|
pass
|
||||||
|
|
||||||
# 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 = [
|
||||||
|
@ -152,6 +155,7 @@ FORMS = [
|
||||||
("security_email", SecurityEmailForm),
|
("security_email", SecurityEmailForm),
|
||||||
("anything_else", AnythingElseForm),
|
("anything_else", AnythingElseForm),
|
||||||
("requirements", RequirementsForm),
|
("requirements", RequirementsForm),
|
||||||
|
("review", ReviewForm),
|
||||||
]
|
]
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -168,6 +172,7 @@ TEMPLATES = {
|
||||||
"security_email": "application_security_email.html",
|
"security_email": "application_security_email.html",
|
||||||
"anything_else": "application_anything_else.html",
|
"anything_else": "application_anything_else.html",
|
||||||
"requirements": "application_requirements.html",
|
"requirements": "application_requirements.html",
|
||||||
|
"review": "application_review.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
|
||||||
|
@ -184,6 +189,7 @@ TITLES = {
|
||||||
"security_email": "Security email for public use",
|
"security_email": "Security email for public use",
|
||||||
"anything_else": "Anything else we should know?",
|
"anything_else": "Anything else we should know?",
|
||||||
"requirements": "Requirements for registration and operation of .gov domains",
|
"requirements": "Requirements for registration and operation of .gov domains",
|
||||||
|
"review": "Review and submit your domain request",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<button type="submit" class="usa-button">Next</button>
|
<button type="submit" class="usa-button">Next</button>
|
||||||
<button type="button" class="usa-button usa-button--outline">Save</button>
|
<button type="button" class="usa-button usa-button--outline">Save</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<button type="submit" class="usa-button">Submit</button>
|
<button type="submit" class="usa-button">Submit your domain request</button>
|
||||||
<button type="button" class="usa-button usa-button--outline">Save</button>
|
<button type="button" class="usa-button usa-button--outline">Save</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
24
src/registrar/templates/application_review.html
Normal file
24
src/registrar/templates/application_review.html
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<!-- Test page -->
|
||||||
|
{% extends 'application_form.html' %}
|
||||||
|
{% load static widget_tweaks %}
|
||||||
|
|
||||||
|
{% block form_content %}
|
||||||
|
|
||||||
|
<form id="step__{{wizard.steps.current}}" class="usa-form usa-form--large" method="post">
|
||||||
|
{% for this_step in wizard.steps.all|slice:":-1" %}
|
||||||
|
<div class="review__step margin-top-2">
|
||||||
|
<div class="review__step__title display-flex flex-justify">
|
||||||
|
<span class="review__step__name">{{ form_titles|get_item:this_step }}</span>
|
||||||
|
<a href="{% url wizard.url_name step=this_step %}">Edit </a>
|
||||||
|
</div>
|
||||||
|
<div class="review__step__value">
|
||||||
|
<Answer value>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{{ block.super }}
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue