Repository: cisagov/manage.get.gov

Issue:
Django Admin: Collapse and expand lesser-used data in domain request
### Issue description

Problem: Some of the data in the request form is needed less frequently, or possibly later, during the adjudication process. This results in a bit of clutter for the analysts, and they would benefit from a cleaner initial view of the request.

Solution: Create a collapsed view for those fields and allow the analysts to expand them on demand.

### Acceptance criteria

- [ ] Per [UPDATED LAYOUT v4](https://miro.com/app/board/uXjVNtCl1JY=/?moveToWidget=3458764580520520212&cot=14), the appropriate fields are collapsed by default.
- [ ] An expand option allows the analyst to reveal all the fields
- [ ] A collapse option allows the analyst to collapse again.

### Additional context

_No response_

### Links to other issues




Discussion:
Per @abroddrick , this ticket should be considered for sprint 41.
"Blocked" tag: this ticket is blocked by a ticket planned for sprint 41 (#1852). It can not be included into sprint 41 unless @abroddrick deem it ok.

Resolving patch:
diff --git a/src/registrar/admin.py b/src/registrar/admin.py
--- a/src/registrar/admin.py
+++ b/src/registrar/admin.py
@@ -885,13 +885,21 @@ class DomainInformationAdmin(ListHeaderAdmin):
                 "fields": [
                     "generic_org_type",
                     "is_election_board",
+                ]
+            },
+        ),
+        (
+            "More details",
+            {
+                "classes": ["collapse"],
+                "fields": [
                     "federal_type",
                     "federal_agency",
                     "tribe_name",
                     "federally_recognized_tribe",
                     "state_recognized_tribe",
                     "about_your_organization",
-                ]
+                ],
             },
         ),
         (
@@ -900,12 +908,20 @@ class DomainInformationAdmin(ListHeaderAdmin):
                 "fields": [
                     "organization_name",
                     "state_territory",
+                ]
+            },
+        ),
+        (
+            "More details",
+            {
+                "classes": ["collapse"],
+                "fields": [
                     "address_line1",
                     "address_line2",
                     "city",
                     "zipcode",
                     "urbanization",
-                ]
+                ],
             },
         ),
     ]
@@ -1092,13 +1108,21 @@ def custom_election_board(self, obj):
                 "fields": [
                     "generic_org_type",
                     "is_election_board",
+                ]
+            },
+        ),
+        (
+            "More details",
+            {
+                "classes": ["collapse"],
+                "fields": [
                     "federal_type",
                     "federal_agency",
                     "tribe_name",
                     "federally_recognized_tribe",
                     "state_recognized_tribe",
                     "about_your_organization",
-                ]
+                ],
             },
         ),
         (
@@ -1107,12 +1131,20 @@ def custom_election_board(self, obj):
                 "fields": [
                     "organization_name",
                     "state_territory",
+                ]
+            },
+        ),
+        (
+            "More details",
+            {
+                "classes": ["collapse"],
+                "fields": [
                     "address_line1",
                     "address_line2",
                     "city",
                     "zipcode",
                     "urbanization",
-                ]
+                ],
             },
         ),
     ]


Test patch: