Add an alert in taskDetail for overdue events

This commit is contained in:
Adam Goldsmith 2020-12-15 01:45:15 -05:00
parent 164d81871a
commit 9d825f74c4

View File

@ -12,7 +12,11 @@
</nav> </nav>
<p> Next scheduled time: {{ task.next_recurrence|date }} </p> <p> Next scheduled time: {{ task.next_recurrence|date }} </p>
<p> Overdue: {{ task.is_overdue }} </p> {% if task.is_overdue %}
<div class="alert alert-danger">
Task is overdue!
</div>
{% endif %}
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}