mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 06:26:34 +02:00
minor changes to content
This commit is contained in:
parent
0eeee88f1c
commit
ce94775879
3 changed files with 7 additions and 3 deletions
|
@ -144,9 +144,10 @@ class RequestingEntityYesNoForm(BaseYesNoForm):
|
|||
"""Extend the initialization of the form from RegistrarForm __init__"""
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.domain_request.portfolio:
|
||||
choose_text = "(choose from list)" if self.domain_request.portfolio.portfolio_suborganizations.exists() else ""
|
||||
self.form_choices = (
|
||||
(False, self.domain_request.portfolio),
|
||||
(True, "A suborganization (choose from list)"),
|
||||
(True, f"A suborganization {choose_text}"),
|
||||
)
|
||||
self.fields[self.field_name] = self.get_typed_choice_field()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue