{% if schedules %}
{% for item in schedules %}

{{ item.schedule.action_type }}

{% if item.schedule.execution_status == 'pending' %} Pending {% elif item.schedule.execution_status == 'completed' %} Completed {% elif item.schedule.execution_status == 'failed' %} Failed {% elif item.schedule.execution_status == 'cancelled' %} Cancelled {% endif %}
{% if item.location %} {% endif %}
Scheduled: {{ item.schedule.scheduled_time.strftime('%Y-%m-%d %H:%M') if item.schedule.scheduled_time else 'N/A' }}
{% if item.schedule.executed_at %}
Executed: {{ item.schedule.executed_at.strftime('%Y-%m-%d %H:%M') }}
{% endif %} {% if item.schedule.created_at %}
Created: {{ item.schedule.created_at.strftime('%Y-%m-%d %H:%M') }}
{% endif %}
{% if item.schedule.description %}

{{ item.schedule.description }}

{% endif %} {% if item.schedule.result_message %}
Result: {{ item.schedule.result_message }}
{% endif %} {% if item.schedule.error_message %}
Error: {{ item.schedule.error_message }}
{% endif %}
{% if item.schedule.execution_status == 'pending' %} {% endif %}
{% endfor %}
{% else %}

No scheduled actions yet

Create schedules to automate tasks

{% endif %}