mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 13:09:41 +02:00
Merge pull request #2187 from cisagov/dk/2178-remove-your-contact-from-requests
Issue 2178: Remove your contact from requests [DK]
This commit is contained in:
commit
85fe89ad31
2 changed files with 10 additions and 2 deletions
|
@ -106,7 +106,7 @@
|
||||||
{% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
|
{% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if DomainRequest.submitter %}
|
{% if DomainRequest.submitter and not has_profile_feature_flag %}
|
||||||
{% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.submitter contact='true' heading_level=heading_level %}
|
{% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.submitter contact='true' heading_level=heading_level %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ from .utility import (
|
||||||
DomainRequestWizardPermissionView,
|
DomainRequestWizardPermissionView,
|
||||||
)
|
)
|
||||||
|
|
||||||
from waffle.decorators import flag_is_active
|
from waffle.decorators import flag_is_active, waffle_flag
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -406,6 +406,10 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
condition = condition(self)
|
condition = condition(self)
|
||||||
if condition:
|
if condition:
|
||||||
step_list.append(step)
|
step_list.append(step)
|
||||||
|
|
||||||
|
if flag_is_active(self.request, "profile_feature"):
|
||||||
|
step_list.remove(Step.YOUR_CONTACT)
|
||||||
|
|
||||||
return step_list
|
return step_list
|
||||||
|
|
||||||
def goto(self, step):
|
def goto(self, step):
|
||||||
|
@ -540,6 +544,10 @@ class YourContact(DomainRequestWizard):
|
||||||
template_name = "domain_request_your_contact.html"
|
template_name = "domain_request_your_contact.html"
|
||||||
forms = [forms.YourContactForm]
|
forms = [forms.YourContactForm]
|
||||||
|
|
||||||
|
@waffle_flag("!profile_feature") # type: ignore
|
||||||
|
def dispatch(self, request, *args, **kwargs): # type: ignore
|
||||||
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class OtherContacts(DomainRequestWizard):
|
class OtherContacts(DomainRequestWizard):
|
||||||
template_name = "domain_request_other_contacts.html"
|
template_name = "domain_request_other_contacts.html"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue