diff --git a/djangorota/djangorota/templates/rota/rota_detail.html b/djangorota/djangorota/templates/rota/rota_detail.html index 473bdf2..3767591 100644 --- a/djangorota/djangorota/templates/rota/rota_detail.html +++ b/djangorota/djangorota/templates/rota/rota_detail.html @@ -1,144 +1,98 @@ {% extends 'base.html' %} - - - Rota: {{ rota.name }} +{% block head %} - {% include 'rota/partials/flatpickr_includes.html' %} - - +{% endblock %} +{% block content %}

{{ rota.name }}

-

- Edit rota -

+

Edit rota

+

{{ rota.description }}

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

-

- -

- {% block head %} - - {% include 'rota/partials/flatpickr_includes.html' %} - {% endblock %} - {% block content %} -
-
-

{{ rota.name }}

-

- Edit rota -

-

{{ rota.description }}

-

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

+

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

- -

- {% 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 %} +
+
+
-
-

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 %} -
-
-
+
+

Constraint options

+
+

Configure typed rota constraint options. Click Edit to open the form showing typed fields and descriptions.

+

+
+

Configured constraint values

+
+ {% if configured_constraints %} + + + + {% for key, info in configured_constraints.items %} + + + + + + {% endfor %} + +
KeyValue
{{ key }}
{{ info.pretty }}
+ Edit +
+ {% csrf_token %} + + + +
+
+ {% else %} +

No typed constraint options have been configured for this rota.

+ {% endif %} +
+
+
-
-

Constraint options

-
-

Configure typed rota constraint options. Click Edit to open the form showing typed fields and descriptions.

-

- -

-
-

Configured constraint values

-
- {% if configured_constraints %} - - - - - - {% for key, info in configured_constraints.items %} - - - - - - {% endfor %} - -
KeyValue
{{ key }}
{{ info.pretty }}
- Edit -
- {% csrf_token %} - - - -
-
- {% else %} -

No typed constraint options have been configured for this rota.

- {% endif %} -
+
+ {% csrf_token %} +
+
+
+
+
+
-
-
+
-
- {% csrf_token %} -
-
- -
-
- -
-
- -
-
-
+
+

Edit shifts

+

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

Edit shifts

-

- -

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