mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
Added domain request pre-amble for user contact info (uses waffle flag for profile feature)
This commit is contained in:
parent
c834797bf7
commit
d57155acc5
4 changed files with 49 additions and 1 deletions
|
@ -15,6 +15,12 @@
|
||||||
<p>If you have <a href="{% public_site_url 'domains/before/#information-you%E2%80%99ll-need-to-complete-the-domain-request-form' %}" target="_blank" class="usa-link">all the information you need</a>,
|
<p>If you have <a href="{% public_site_url 'domains/before/#information-you%E2%80%99ll-need-to-complete-the-domain-request-form' %}" target="_blank" class="usa-link">all the information you need</a>,
|
||||||
completing your domain request might take around 15 minutes.</p>
|
completing your domain request might take around 15 minutes.</p>
|
||||||
|
|
||||||
|
{% if has_profile_feature_flag %}
|
||||||
|
<h2>How we'll reach you</h2>
|
||||||
|
<p>While reviewing your domain request, we may need to reach out with questions. We'll also email you when we complete our review If the contact information below is not correct, visit <a href="" target="_blank" class="usa-link">your profile</a> to make updates.</p>
|
||||||
|
{% include "includes/profile_information.html" with user=user%}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% block form_buttons %}
|
{% block form_buttons %}
|
||||||
<div class="stepnav">
|
<div class="stepnav">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'domain_request_form.html' %}
|
{% extends '(request):.html' %}
|
||||||
{% load static url_helpers %}
|
{% load static url_helpers %}
|
||||||
{% load custom_filters %}
|
{% load custom_filters %}
|
||||||
|
|
||||||
|
|
36
src/registrar/templates/includes/profile_information.html
Normal file
36
src/registrar/templates/includes/profile_information.html
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{% load static field_helpers %}
|
||||||
|
|
||||||
|
{% block domain_content %}
|
||||||
|
|
||||||
|
<!-- {% if not user.has_contact_info %}
|
||||||
|
<div class="usa-alert usa-alert--error margin-bottom-2">
|
||||||
|
<div class="usa-alert__body">
|
||||||
|
<h4 class="usa-alert__heading larger-font-sizing">
|
||||||
|
Missing contact information</h4>
|
||||||
|
<p class="usa-alert__text ">
|
||||||
|
We appear to be missing some contact information from you. Please visit your profile.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %} -->
|
||||||
|
<div
|
||||||
|
class="usa-summary-box"
|
||||||
|
role="region"
|
||||||
|
aria-labelledby="summary-box-key-information"
|
||||||
|
>
|
||||||
|
<div class="usa-summary-box__body">
|
||||||
|
<h3 class="usa-summary-box__heading" id="summary-box-key-information">
|
||||||
|
Your contact information
|
||||||
|
</h3>
|
||||||
|
<div class="usa-summary-box__text">
|
||||||
|
<ul>
|
||||||
|
<li>Full name: <b>{{ user.contact.first_name }} {{ user.contact.last_name }}</b></li>
|
||||||
|
<li>Organization email: <b>{{ user.contact.email }}</b></li>
|
||||||
|
<li>Title or role in your organization: <b>{{ user.contact.title }}</b></li>
|
||||||
|
<li>Phone: <b>{{ user.contact.phone }}</b></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
|
@ -16,6 +16,8 @@ from registrar.utility import StrEnum
|
||||||
from registrar.views.utility import StepsHelper
|
from registrar.views.utility import StepsHelper
|
||||||
from registrar.views.utility.permission_views import DomainRequestPermissionDeleteView
|
from registrar.views.utility.permission_views import DomainRequestPermissionDeleteView
|
||||||
|
|
||||||
|
from waffle.decorators import flag_is_active
|
||||||
|
|
||||||
from .utility import (
|
from .utility import (
|
||||||
DomainRequestPermissionView,
|
DomainRequestPermissionView,
|
||||||
DomainRequestPermissionWithdrawView,
|
DomainRequestPermissionWithdrawView,
|
||||||
|
@ -227,6 +229,10 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
# know which view is first in the list of steps.
|
# know which view is first in the list of steps.
|
||||||
if self.__class__ == DomainRequestWizard:
|
if self.__class__ == DomainRequestWizard:
|
||||||
if request.path_info == self.NEW_URL_NAME:
|
if request.path_info == self.NEW_URL_NAME:
|
||||||
|
user = self.request.user
|
||||||
|
context = self.get_context_data()
|
||||||
|
context["user"] = user
|
||||||
|
context["has_profile_feature_flag"] = flag_is_active(request, "profile_feature")
|
||||||
return render(request, "domain_request_intro.html")
|
return render(request, "domain_request_intro.html")
|
||||||
else:
|
else:
|
||||||
return self.goto(self.steps.first)
|
return self.goto(self.steps.first)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue