mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 10:07:04 +02:00
updated modal to include current expiration date
This commit is contained in:
parent
a7379f5d86
commit
b92c3cb7b8
2 changed files with 6 additions and 0 deletions
|
@ -2194,6 +2194,9 @@ class DomainAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
|
|
||||||
extra_context["state_help_message"] = Domain.State.get_admin_help_text(domain.state)
|
extra_context["state_help_message"] = Domain.State.get_admin_help_text(domain.state)
|
||||||
extra_context["domain_state"] = domain.get_state_display()
|
extra_context["domain_state"] = domain.get_state_display()
|
||||||
|
extra_context["curr_exp_date"] = (
|
||||||
|
domain.expiration_date if domain.expiration_date is not None else self._get_current_date()
|
||||||
|
)
|
||||||
|
|
||||||
return super().changeform_view(request, object_id, form_url, extra_context)
|
return super().changeform_view(request, object_id, form_url, extra_context)
|
||||||
|
|
||||||
|
|
|
@ -76,6 +76,9 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Domain: <b>{{ original.name }}</b>
|
Domain: <b>{{ original.name }}</b>
|
||||||
|
{# Acts as a <br> #}
|
||||||
|
<div class="display-inline"></div>
|
||||||
|
Current expiration date: <b>{{ curr_exp_date }}</b>
|
||||||
{{test}}
|
{{test}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue