{% extends "base.html" %} {% from "components/ui.html" import page_header, empty_state %} {% block title %}{{ _('Recurring Tasks') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Recurring Tasks')} ] %} {{ page_header( icon_class='fas fa-redo', title_text=_('Recurring Tasks'), subtitle_text=_('Automated task creation templates'), breadcrumbs=breadcrumbs ) }}
{{ _('Create Recurring Task') }}
{% if recurring_tasks %}
{% for task in recurring_tasks %} {% endfor %}
{{ _('Name') }} {{ _('Project') }} {{ _('Frequency') }} {{ _('Next Run') }} {{ _('Status') }} {{ _('Actions') }}
{{ task.name }}
{% if task.description %}
{{ task.description[:50] }}{% if task.description|length > 50 %}...{% endif %}
{% endif %}
{% if task.project %} {{ task.project.name }} {% else %} {{ _('No project') }} {% endif %} {{ task.frequency|title }} {% if task.interval > 1 %} ({{ task.interval }}) {% endif %} {% if task.next_run_date %} {{ task.next_run_date|local_date }} {% else %} {{ _('Not scheduled') }} {% endif %} {% if task.is_active %}{{ _('Active') }}{% else %}{{ _('Inactive') }}{% endif %}
{% else %} {{ empty_state( icon='fas fa-redo', title=_('No recurring tasks'), message=_('Create recurring task templates to automatically generate tasks on a schedule.') ) }} {% endif %} {% endblock %}