{% extends 'base/layout.html' %} {% block title %}Windows DHCP — Schedule{% endblock %} {% block content %}
Scheduled Sync
{% if next_sync_job and next_sync_job.interval %} {% endif %}
Next run at {% if next_sync_job %} {% if next_sync_job.status == 'scheduled' and next_sync_job.scheduled %} {{ next_sync_job.scheduled|date:"N j, Y, g:i a" }} ({{ next_sync_job.scheduled|timeuntil }} from now) {% elif next_sync_job.status == 'pending' %} Queued — running shortly {% else %} N/A {% endif %} {% else %} N/A — no sync scheduled {% endif %}
Repeats every {{ next_sync_job.interval }} minute{{ next_sync_job.interval|pluralize }}
{% if not next_sync_job or next_sync_job.status != 'pending' %}
{% csrf_token %} {# start_at_hidden is filled with the UTC ISO string by the script below before submit #}
{% endif %}
Schedule runs the first sync at the chosen date/time, then repeats on the interval. A new Sync Interval saved on the Settings page takes effect the next time you click Schedule, or when the recurring sync next reschedules itself.
On-Demand
{% csrf_token %}
Run Now runs a single sync right away. It does not repeat, and it does not change the scheduled sync or its interval.
{% endblock %} {% block javascript %} {{ block.super }} {% endblock %}