{% extends 'base/layout.html' %} {% load form_helpers %} {% block title %}Windows DHCP — Settings{% endblock %} {% block content %}
Plugin Settings
{% csrf_token %} {% render_form form %}
Cancel
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 }}
{% csrf_token %}
{% 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 %}
Run Now enqueues an immediate sync that then repeats on the configured interval. Schedule runs the first sync at the chosen date/time, then repeats on the interval. Saving a new interval above reschedules any existing job.
{% endblock %} {% block javascript %} {{ block.super }} {% endblock %}