{% extends ../base.html %} {% block title %}{{ _('Crafty Controller - Server Schedules') }}{% end %} {% block content %}

{{ _('Scheduled Tasks') }} {{ _("It's like a bot") }}, {{ _("only better") }}

{% raw xsrf_form_html() %}

{{ _('New Scheduled Action') }}


{{ _('Time is disabled for minute and hour values') }}
{{ _('An empty value means "every". For instance: Backup every 1 hour') }}
{% raw xsrf_form_html() %}

{{ _('Scheduled Actions') }}

{% for task in data['db_data'] %} {% end %}
{{ _('Enabled') }}
{{ _('Click thumb to toggle') }}
{{ _('Action') }} {{ _('Comment') }} {{ _('Delete') }}
{% if task.enabled %} {% else %} {% end %} {% if task.action == 'command' %} {{ _('Send Command') }} {% else %} {{ task.action.title() }} {% end %} {{ _('every') }} {{ task.interval }} {% if task.interval_type == 'd' %} {{ _('day(s)') }} {% elif task.interval_type == 'm' %} {{ _('minute(s)') }} {% elif task.interval_type == 'h' %} {{ _('hour(s)') }} {% else %} {{ task.interval_type.title() }} {% end %} {% if task.start_time %} {{ _('at') }} {{ task.start_time }} {% end %} {% if task.command %}
{{ _('Command:') }} {{ task.command }} {% end %}
{{ task.comment }} Delete
{% end %} {% block js-script %} {% end %}