changing anything else page

This commit is contained in:
Kristina Yin 2023-11-29 11:10:18 -08:00
parent 7cd037999e
commit fa72f413ab
No known key found for this signature in database
GPG key ID: 9BB3845BB3A21584
10 changed files with 12 additions and 34 deletions

View file

@ -434,7 +434,7 @@ class DomainInformationAdmin(ListHeaderAdmin):
"No other employees from your organization?", "No other employees from your organization?",
{"fields": ["no_other_contacts_rationale"]}, {"fields": ["no_other_contacts_rationale"]},
), ),
("Anything else we should know? (optional)", {"fields": ["anything_else"]}), ("Anything else?", {"fields": ["anything_else"]}),
( (
"Requirements for operating .gov domains", "Requirements for operating .gov domains",
{"fields": ["is_policy_acknowledged"]}, {"fields": ["is_policy_acknowledged"]},
@ -569,7 +569,7 @@ class DomainApplicationAdmin(ListHeaderAdmin):
"No other employees from your organization?", "No other employees from your organization?",
{"fields": ["no_other_contacts_rationale"]}, {"fields": ["no_other_contacts_rationale"]},
), ),
("Anything else we should know?", {"fields": ["anything_else"]}), ("Anything else?", {"fields": ["anything_else"]}),
( (
"Requirements for operating .gov domains", "Requirements for operating .gov domains",
{"fields": ["is_policy_acknowledged"]}, {"fields": ["is_policy_acknowledged"]},

View file

@ -620,7 +620,7 @@ class NoOtherContactsForm(RegistrarForm):
class AnythingElseForm(RegistrarForm): class AnythingElseForm(RegistrarForm):
anything_else = forms.CharField( anything_else = forms.CharField(
required=False, required=False,
label="Anything else we should know?", label="Anything else?",
widget=forms.Textarea(), widget=forms.Textarea(),
validators=[ validators=[
MaxLengthValidator( MaxLengthValidator(

View file

@ -1,4 +1,4 @@
# Generated by Django 4.2.7 on 2023-11-29 02:47 # Generated by Django 4.2.7 on 2023-11-29 19:05
from django.db import migrations, models from django.db import migrations, models
@ -12,11 +12,11 @@ class Migration(migrations.Migration):
migrations.AlterField( migrations.AlterField(
model_name="domainapplication", model_name="domainapplication",
name="anything_else", name="anything_else",
field=models.TextField(blank=True, help_text="Anything else we should know? (optional)", null=True), field=models.TextField(blank=True, help_text="Anything else?", null=True),
), ),
migrations.AlterField( migrations.AlterField(
model_name="domaininformation", model_name="domaininformation",
name="anything_else", name="anything_else",
field=models.TextField(blank=True, help_text="Anything else we should know? (optional)", null=True), field=models.TextField(blank=True, help_text="Anything else?", null=True),
), ),
] ]

View file

@ -1,22 +0,0 @@
# Generated by Django 4.2.7 on 2023-11-29 16:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("registrar", "0050_alter_domainapplication_anything_else_and_more"),
]
operations = [
migrations.AlterField(
model_name="domainapplication",
name="anything_else",
field=models.TextField(blank=True, help_text="Anything else we should know?", null=True),
),
migrations.AlterField(
model_name="domaininformation",
name="anything_else",
field=models.TextField(blank=True, help_text="Anything else we should know?", null=True),
),
]

View file

@ -543,7 +543,7 @@ class DomainApplication(TimeStampedModel):
anything_else = models.TextField( anything_else = models.TextField(
null=True, null=True,
blank=True, blank=True,
help_text="Anything else we should know?", help_text="Anything else?",
) )
is_policy_acknowledged = models.BooleanField( is_policy_acknowledged = models.BooleanField(

View file

@ -190,7 +190,7 @@ class DomainInformation(TimeStampedModel):
anything_else = models.TextField( anything_else = models.TextField(
null=True, null=True,
blank=True, blank=True,
help_text="Anything else we should know?", help_text="Anything else?",
) )
is_policy_acknowledged = models.BooleanField( is_policy_acknowledged = models.BooleanField(

View file

@ -2,7 +2,7 @@
{% load field_helpers %} {% load field_helpers %}
{% block form_instructions %} {% block form_instructions %}
<h2>Is there anything else we should know about your domain request? (optional)</h2> <p>Is there anything else you'd like us to know about your domain request? This question is optional.</p>
{% endblock %} {% endblock %}
{% block form_required_fields_help_text %} {% block form_required_fields_help_text %}

View file

@ -111,7 +111,7 @@
{% include "includes/summary_item.html" with title='Other employees from your organization' value=domainapplication.other_contacts.all contact='true' list='true' heading_level=heading_level %} {% include "includes/summary_item.html" with title='Other employees from your organization' value=domainapplication.other_contacts.all contact='true' list='true' heading_level=heading_level %}
{% include "includes/summary_item.html" with title='Anything else we should know' value=domainapplication.anything_else|default:"No" heading_level=heading_level %} {% include "includes/summary_item.html" with title='Anything else?' value=domainapplication.anything_else|default:"No" heading_level=heading_level %}
{% endwith %} {% endwith %}
</div> </div>

View file

@ -34,6 +34,6 @@ Other employees from your organization:
{% for other in application.other_contacts.all %} {% for other in application.other_contacts.all %}
{% spaceless %}{% include "emails/includes/contact.txt" with contact=other %}{% endspaceless %} {% spaceless %}{% include "emails/includes/contact.txt" with contact=other %}{% endspaceless %}
{% endfor %}{% endif %}{% if application.anything_else %} {% endfor %}{% endif %}{% if application.anything_else %}
Anything else we should know? Anything else?
{{ application.anything_else }} {{ application.anything_else }}
{% endif %} {% endif %}

View file

@ -85,7 +85,7 @@ class ApplicationWizard(ApplicationWizardPermissionView, TemplateView):
Step.YOUR_CONTACT: _("Your contact information"), Step.YOUR_CONTACT: _("Your contact information"),
Step.OTHER_CONTACTS: _("Other employees from your organization"), Step.OTHER_CONTACTS: _("Other employees from your organization"),
Step.NO_OTHER_CONTACTS: _("No other employees from your organization?"), Step.NO_OTHER_CONTACTS: _("No other employees from your organization?"),
Step.ANYTHING_ELSE: _("Anything else we should know?"), Step.ANYTHING_ELSE: _("Anything else?"),
Step.REQUIREMENTS: _("Requirements for operating .gov domains"), Step.REQUIREMENTS: _("Requirements for operating .gov domains"),
Step.REVIEW: _("Review and submit your domain request"), Step.REVIEW: _("Review and submit your domain request"),
} }