Use proper timestamp format

This commit is contained in:
richard-dds 2019-06-05 11:30:29 -04:00
parent 2de8f64645
commit e2dad0b56f

View File

@ -13,18 +13,32 @@
</a> </a>
{% endmacro %} {% endmacro %}
{% macro TaskOrderDateTime(dt, className="") %}
<local-datetime timestamp="{{ dt }}" format="M/D/YYYY" class="{{ className }}"></local-datetime>
{% endmacro %}
{% macro TaskOrderDate(task_order) %} {% macro TaskOrderDate(task_order) %}
<span class="datetime"> <span class="datetime">
{% if task_order.is_active %} {% if task_order.is_active %}
Began {{ task_order.start_date }} &nbsp;&nbsp;|&nbsp;&nbsp; Ends {{ task_order.end_date }} Began {{ TaskOrderDateTime(task_order.start_date) }} &nbsp;&nbsp;|&nbsp;&nbsp; Ends {{ TaskOrderDateTime(task_order.end_date) }}
{% elif task_order.is_expired %} {% elif task_order.is_expired %}
Started {{ task_order.start_date }} &nbsp;&nbsp;|&nbsp;&nbsp; Ended {{ task_order.end_date }} Started {{ TaskOrderDateTime(task_order.start_date) }} &nbsp;&nbsp;|&nbsp;&nbsp; Ended {{ TaskOrderDateTime(task_order.end_date) }}
{% else %} {% else %}
Started {{ task_order.start_date }} Started {{ TaskOrderDateTime(task_order.start_date) }}
{% endif %} {% endif %}
</span> </span>
{% endmacro %} {% endmacro %}
{% macro TaskOrderActions(task_order) %}
<div class="task-order-buttons">
{% if task_order.is_active %}
{% elif task_order.is_expired %}
{% else %}
{% endif %}
</div>
{% endmacro %}
{% macro TaskOrderList(task_orders, label='success') %} {% macro TaskOrderList(task_orders, label='success') %}
<div> <div>
{% for task_order in task_orders %} {% for task_order in task_orders %}