{% extends "./base.html" %} {% block plannedmaintenance_main %}
{% if request.user.is_staff %} Create new {% endif %}
{% for task in object_list %} {% empty %} {% endfor %}
Status Time Window Description Filters Created by Actions
{% if task.current %} Ongoing {% elif task.future %} Scheduled {% else %} Completed {% endif %}
{{ task.start_time|date:preferences.argus_htmx.datetime_format }} {% if task.end_time.year >= 9999 %} to now {% else %} to {{ task.end_time|date:preferences.argus_htmx.datetime_format }} {% endif %}
{{ task.description|default:"-" }}
{% for filter in task.filters.all %} {{ filter.name }} {% empty %} None {% endfor %}
{{ task.created_by }}
{% if request.user.is_staff and task.modifiable %} Edit {% else %} View {% endif %} {% if request.user.is_staff %} {% if task.modifiable %} {% if task.current %} {% include "./_cancel_confirm_dialog.html" with task=task %} {% elif task.future %} {% include "./_delete_confirm_dialog.html" with task=task %} {% endif %} {% endif %} {% endif %}
{% if current_tab == 'past' %} No past maintenance tasks {% else %} No upcoming maintenance tasks {% endif %}
{% endblock plannedmaintenance_main %}