mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 19:20:47 +02:00
Merge pull request #1413 from cisagov/dk/1298-adjango-admin-searchable-dropdown
Issue #1298 - Django admin - searchable drop down for User Domain Role
This commit is contained in:
commit
71f28782c6
2 changed files with 9 additions and 1 deletions
|
@ -322,7 +322,7 @@ class WebsiteAdmin(ListHeaderAdmin):
|
|||
|
||||
|
||||
class UserDomainRoleAdmin(ListHeaderAdmin):
|
||||
"""Custom domain role admin class."""
|
||||
"""Custom user domain role admin class."""
|
||||
|
||||
# Columns
|
||||
list_display = [
|
||||
|
@ -340,6 +340,8 @@ class UserDomainRoleAdmin(ListHeaderAdmin):
|
|||
]
|
||||
search_help_text = "Search by user, domain, or role."
|
||||
|
||||
autocomplete_fields = ["user", "domain"]
|
||||
|
||||
|
||||
class DomainInvitationAdmin(ListHeaderAdmin):
|
||||
"""Custom domain invitation admin class."""
|
||||
|
|
|
@ -245,3 +245,9 @@ h1, h2, h3 {
|
|||
padding-left: 90px;
|
||||
}
|
||||
}
|
||||
|
||||
// Combo box
|
||||
#select2-id_domain-results,
|
||||
#select2-id_user-results {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue