From 84f85d944f20d621ccdd9b4f4c0d9c46ba548812 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:14:23 -0700 Subject: [PATCH] Do the thing --- src/registrar/forms/domain_request_wizard.py | 15 +++++++++++++++ ...rtfolio_domain_request_additional_details.html | 10 +++++----- src/registrar/views/domain_request.py | 2 +- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/registrar/forms/domain_request_wizard.py b/src/registrar/forms/domain_request_wizard.py index e55c40858..5a791e921 100644 --- a/src/registrar/forms/domain_request_wizard.py +++ b/src/registrar/forms/domain_request_wizard.py @@ -794,6 +794,21 @@ class AnythingElseForm(BaseDeletableRegistrarForm): ) +class PortfolioAnythingElseForm(BaseDeletableRegistrarForm): + """The form for the portfolio additional details page. Tied to the anything_else field.""" + anything_else = forms.CharField( + required=False, + label="Anything else?", + widget=forms.Textarea(), + validators=[ + MaxLengthValidator( + 2000, + message="Response must be less than 2000 characters.", + ) + ], + ) + + class AnythingElseYesNoForm(BaseYesNoForm): """Yes/no toggle for the anything else question on additional details""" diff --git a/src/registrar/templates/portfolio_domain_request_additional_details.html b/src/registrar/templates/portfolio_domain_request_additional_details.html index 3c5b50d6b..5bc529243 100644 --- a/src/registrar/templates/portfolio_domain_request_additional_details.html +++ b/src/registrar/templates/portfolio_domain_request_additional_details.html @@ -2,18 +2,18 @@ {% load static field_helpers %} {% block form_required_fields_help_text %} -{% include "includes/required_fields.html" %} +{% comment %} Empty - this step is not required {% endcomment %} {% endblock %} {% block form_fields %} -