mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-04 11:37:21 +02:00
Add emails to other pages
This commit is contained in:
parent
1293f189a7
commit
48a4278240
3 changed files with 10 additions and 3 deletions
|
@ -649,7 +649,9 @@ class ContactAdmin(ListHeaderAdmin):
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
change_form_template = "django/admin/public_contact_change_form.html"
|
autocomplete_fields = ["user"]
|
||||||
|
|
||||||
|
change_form_template = "django/admin/email_clipboard_change_form.html"
|
||||||
|
|
||||||
# We name the custom prop 'contact' because linter
|
# We name the custom prop 'contact' because linter
|
||||||
# is not allowing a short_description attr on it
|
# is not allowing a short_description attr on it
|
||||||
|
@ -832,6 +834,8 @@ class DomainInvitationAdmin(ListHeaderAdmin):
|
||||||
# error.
|
# error.
|
||||||
readonly_fields = ["status"]
|
readonly_fields = ["status"]
|
||||||
|
|
||||||
|
change_form_template = "django/admin/email_clipboard_change_form.html"
|
||||||
|
|
||||||
|
|
||||||
class DomainInformationAdmin(ListHeaderAdmin):
|
class DomainInformationAdmin(ListHeaderAdmin):
|
||||||
"""Customize domain information admin class."""
|
"""Customize domain information admin class."""
|
||||||
|
@ -1327,6 +1331,8 @@ class TransitionDomainAdmin(ListHeaderAdmin):
|
||||||
search_fields = ["username", "domain_name"]
|
search_fields = ["username", "domain_name"]
|
||||||
search_help_text = "Search by user or domain name."
|
search_help_text = "Search by user or domain name."
|
||||||
|
|
||||||
|
change_form_template = "django/admin/email_clipboard_change_form.html"
|
||||||
|
|
||||||
|
|
||||||
class DomainInformationInline(admin.StackedInline):
|
class DomainInformationInline(admin.StackedInline):
|
||||||
"""Edit a domain information on the domain page.
|
"""Edit a domain information on the domain page.
|
||||||
|
@ -1819,7 +1825,8 @@ class DraftDomainAdmin(ListHeaderAdmin):
|
||||||
class PublicContactAdmin(ListHeaderAdmin):
|
class PublicContactAdmin(ListHeaderAdmin):
|
||||||
"""Custom PublicContact admin class."""
|
"""Custom PublicContact admin class."""
|
||||||
|
|
||||||
change_form_template = "django/admin/public_contact_change_form.html"
|
change_form_template = "django/admin/email_clipboard_change_form.html"
|
||||||
|
autocomplete_fields = ["domain"]
|
||||||
|
|
||||||
|
|
||||||
class VerifiedByStaffAdmin(ListHeaderAdmin):
|
class VerifiedByStaffAdmin(ListHeaderAdmin):
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
|
|
||||||
{% block field_sets %}
|
{% block field_sets %}
|
||||||
{% for fieldset in adminform %}
|
{% for fieldset in adminform %}
|
||||||
{% include "django/admin/includes/contact_fieldset.html" %}
|
{% include "django/admin/includes/email_clipboard_fieldset.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue