Skip to content

Commit

Permalink
updated modal to include current expiration date
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-kennedy-ecs committed Jun 26, 2024
1 parent a7379f5 commit b92c3cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/registrar/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2194,6 +2194,9 @@ def changeform_view(self, request, object_id=None, form_url="", extra_context=No

extra_context["state_help_message"] = Domain.State.get_admin_help_text(domain.state)
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)

Expand Down
3 changes: 3 additions & 0 deletions src/registrar/templates/django/admin/domain_change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ <h2 class="usa-modal__heading" id="modal-1-heading">
</p>
<p>
Domain: <b>{{ original.name }}</b>
{# Acts as a <br> #}
<div class="display-inline"></div>
Current expiration date: <b>{{ curr_exp_date }}</b>
{{test}}
</p>
</div>
Expand Down

0 comments on commit b92c3cb

Please sign in to comment.