{% include 'rota/partials/flatpickr_includes.html' %}

{{ rota.name }}

Edit rota

{{ rota.description }}

Period: {{ rota.start_date }} → {{ rota.end_date }}

{% include 'rota/partials/worker_list.html' %}

Historic runs

{% csrf_token %}
    {% for run in rota.runs.all %}
  • Run {{ run.id }} — {{ run.get_status_display }} {% if run.finished_at %} — finished {{ run.finished_at }}{% endif %} Export
  • {% empty %}
  • No previous runs
  • {% endfor %}

Rota Settings

Configure rota constraint options (typed via RotaConstraintOptions) and a few builder args. Change values and click Save to persist.

{% if options_form %}
{% csrf_token %}
{% for field in options_form.visible_fields %} {% if field.name|slice:":5" == "opt__" %}
{{ field }}
{% if field.help_text %}

{{ field.help_text }}

{% endif %} {% for err in field.errors %}

{{ err }}

{% endfor %}
{% endif %} {% endfor %}
{% else %}

Constraint form unavailable.

{% endif %}

Available constraint keys

{% for key, info in available_constraints.items %} {% empty %} {% endfor %}
Key Default Current Description
{{ key }}
{{ info.default|default:"" }}
{{ info.current|default:"" }}
{{ info.description|default:"" }} {% if info.current is None or info.current == "" %}
{% endif %}
No constraint metadata available
{% csrf_token %}

Edit shifts

{# Load form via HTMX when user clicks 'Add shift' - initial empty state #}
{% include 'rota/partials/shift_list.html' %}