mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
formatting of expiration date and creation date in domain management
This commit is contained in:
parent
225a03dd48
commit
eb61199d85
2 changed files with 11 additions and 9 deletions
|
@ -34,7 +34,7 @@
|
|||
{% include "includes/summary_item.html" with title='DNS name servers' domains='true' value=domain.nameservers list='true' edit_link=url editable=domain.is_editable %}
|
||||
{% else %}
|
||||
{% if domain.is_editable %}
|
||||
<h2 class="margin-top-neg-1"> DNS name servers </h2>
|
||||
<h2 class="margin-top-3"> DNS name servers </h2>
|
||||
<p> No DNS name servers have been added yet. Before your domain can be used we’ll need information about your domain name servers.</p>
|
||||
<a class="usa-button margin-bottom-1" href="{{url}}"> Add DNS name servers </a>
|
||||
{% else %}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{% if domain.expiration_date or domain.created_at %}
|
||||
<div>
|
||||
{% if domain.expiration_date %}Expires:
|
||||
{{ domain.expiration_date|date:"Y-m-d" }}
|
||||
{% if domain.is_expired %} (expired){% endif %}
|
||||
<br/>
|
||||
{% endif %}
|
||||
{% if domain.created_at %}Date created: {{ domain.created_at|date:"Y-m-d" }}{% endif %}
|
||||
</div>
|
||||
<p class="margin-y-0">
|
||||
{% if domain.expiration_date %}
|
||||
<strong class="text-primary-dark">Expires:</strong>
|
||||
{{ domain.expiration_date|date }}
|
||||
{% if domain.is_expired %} <span class="text-error-dark">(expired)</span>{% endif %}
|
||||
<br/>
|
||||
{% endif %}
|
||||
{% if domain.created_at %}
|
||||
<strong class="text-primary-dark">Date created:</strong> {{ domain.created_at|date }}{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue