mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 11:29:25 +02:00
initial form changes - wip
This commit is contained in:
parent
0acc87c4f1
commit
52f299d06e
3 changed files with 21 additions and 43 deletions
|
@ -777,18 +777,21 @@ class DomainInformationAdmin(ListHeaderAdmin):
|
||||||
search_help_text = "Search by domain."
|
search_help_text = "Search by domain."
|
||||||
|
|
||||||
fieldsets = [
|
fieldsets = [
|
||||||
(None, {"fields": ["creator", "domain_application", "notes"]}),
|
(None, {"fields": ["creator", "submitter", "domain_application", "notes"]}),
|
||||||
|
(".gov domain", {"fields": ["domain"]}),
|
||||||
|
("Contacts", {"fields": ["authorizing_official", "other_contacts", "no_other_contacts_rationale"]}),
|
||||||
|
("Background info", {"fields": ["anything_else"]}),
|
||||||
(
|
(
|
||||||
"Type of organization",
|
"Type of organization",
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
"organization_type",
|
"organization_type",
|
||||||
|
"is_election_board",
|
||||||
|
"federal_type",
|
||||||
|
"federal_agency",
|
||||||
|
"tribe_name",
|
||||||
"federally_recognized_tribe",
|
"federally_recognized_tribe",
|
||||||
"state_recognized_tribe",
|
"state_recognized_tribe",
|
||||||
"tribe_name",
|
|
||||||
"federal_agency",
|
|
||||||
"federal_type",
|
|
||||||
"is_election_board",
|
|
||||||
"about_your_organization",
|
"about_your_organization",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -798,28 +801,15 @@ class DomainInformationAdmin(ListHeaderAdmin):
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
"organization_name",
|
"organization_name",
|
||||||
|
"state_territory",
|
||||||
"address_line1",
|
"address_line1",
|
||||||
"address_line2",
|
"address_line2",
|
||||||
"city",
|
"city",
|
||||||
"state_territory",
|
|
||||||
"zipcode",
|
"zipcode",
|
||||||
"urbanization",
|
"urbanization",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
("Authorizing official", {"fields": ["authorizing_official"]}),
|
|
||||||
(".gov domain", {"fields": ["domain"]}),
|
|
||||||
("Your contact information", {"fields": ["submitter"]}),
|
|
||||||
("Other employees from your organization?", {"fields": ["other_contacts"]}),
|
|
||||||
(
|
|
||||||
"No other employees from your organization?",
|
|
||||||
{"fields": ["no_other_contacts_rationale"]},
|
|
||||||
),
|
|
||||||
("Anything else?", {"fields": ["anything_else"]}),
|
|
||||||
(
|
|
||||||
"Requirements for operating a .gov domain",
|
|
||||||
{"fields": ["is_policy_acknowledged"]},
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Read only that we'll leverage for CISA Analysts
|
# Read only that we'll leverage for CISA Analysts
|
||||||
|
@ -979,18 +969,21 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
||||||
search_help_text = "Search by domain or submitter."
|
search_help_text = "Search by domain or submitter."
|
||||||
|
|
||||||
fieldsets = [
|
fieldsets = [
|
||||||
(None, {"fields": ["status", "rejection_reason", "investigator", "creator", "approved_domain", "notes"]}),
|
(None, {"fields": ["status", "rejection_reason", "investigator", "creator", "submitter", "approved_domain", "notes"]}),
|
||||||
|
(".gov domain", {"fields": ["requested_domain", "alternative_domains"]}),
|
||||||
|
("Contacts", {"fields": ["authorizing_official", "other_contacts", "no_other_contacts_rationale"]}),
|
||||||
|
("Background info", {"fields": ["purpose", "anything_else", "current_websites"]}),
|
||||||
(
|
(
|
||||||
"Type of organization",
|
"Type of organization",
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
"organization_type",
|
"organization_type",
|
||||||
|
"is_election_board",
|
||||||
|
"federal_type",
|
||||||
|
"federal_agency",
|
||||||
|
"tribe_name",
|
||||||
"federally_recognized_tribe",
|
"federally_recognized_tribe",
|
||||||
"state_recognized_tribe",
|
"state_recognized_tribe",
|
||||||
"tribe_name",
|
|
||||||
"federal_agency",
|
|
||||||
"federal_type",
|
|
||||||
"is_election_board",
|
|
||||||
"about_your_organization",
|
"about_your_organization",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -1000,30 +993,15 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
||||||
{
|
{
|
||||||
"fields": [
|
"fields": [
|
||||||
"organization_name",
|
"organization_name",
|
||||||
|
"state_territory",
|
||||||
"address_line1",
|
"address_line1",
|
||||||
"address_line2",
|
"address_line2",
|
||||||
"city",
|
"city",
|
||||||
"state_territory",
|
|
||||||
"zipcode",
|
"zipcode",
|
||||||
"urbanization",
|
"urbanization",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
("Authorizing official", {"fields": ["authorizing_official"]}),
|
|
||||||
("Current websites", {"fields": ["current_websites"]}),
|
|
||||||
(".gov domain", {"fields": ["requested_domain", "alternative_domains"]}),
|
|
||||||
("Purpose of your domain", {"fields": ["purpose"]}),
|
|
||||||
("Your contact information", {"fields": ["submitter"]}),
|
|
||||||
("Other employees from your organization?", {"fields": ["other_contacts"]}),
|
|
||||||
(
|
|
||||||
"No other employees from your organization?",
|
|
||||||
{"fields": ["no_other_contacts_rationale"]},
|
|
||||||
),
|
|
||||||
("Anything else?", {"fields": ["anything_else"]}),
|
|
||||||
(
|
|
||||||
"Requirements for operating a .gov domain",
|
|
||||||
{"fields": ["is_policy_acknowledged"]},
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Read only that we'll leverage for CISA Analysts
|
# Read only that we'll leverage for CISA Analysts
|
||||||
|
|
|
@ -504,7 +504,7 @@ class DomainApplication(TimeStampedModel):
|
||||||
"registrar.Website",
|
"registrar.Website",
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="current+",
|
related_name="current+",
|
||||||
verbose_name="websites",
|
verbose_name="Current websites",
|
||||||
)
|
)
|
||||||
|
|
||||||
approved_domain = models.OneToOneField(
|
approved_domain = models.OneToOneField(
|
||||||
|
@ -550,7 +550,7 @@ class DomainApplication(TimeStampedModel):
|
||||||
"registrar.Contact",
|
"registrar.Contact",
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="contact_applications",
|
related_name="contact_applications",
|
||||||
verbose_name="contacts",
|
verbose_name="Other employees",
|
||||||
)
|
)
|
||||||
|
|
||||||
no_other_contacts_rationale = models.TextField(
|
no_other_contacts_rationale = models.TextField(
|
||||||
|
|
|
@ -183,7 +183,7 @@ class DomainInformation(TimeStampedModel):
|
||||||
"registrar.Contact",
|
"registrar.Contact",
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="contact_applications_information",
|
related_name="contact_applications_information",
|
||||||
verbose_name="contacts",
|
verbose_name="Other employees",
|
||||||
)
|
)
|
||||||
|
|
||||||
no_other_contacts_rationale = models.TextField(
|
no_other_contacts_rationale = models.TextField(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue