formatting of expiration date and creation date in domain management

This commit is contained in:
David Kennedy 2023-12-12 16:03:04 -05:00
parent 225a03dd48
commit eb61199d85
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 11 additions and 9 deletions

View file

@ -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 well need information about your domain name servers.</p>
<a class="usa-button margin-bottom-1" href="{{url}}"> Add DNS name servers </a>
{% else %}

View file

@ -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 %}