diff --git a/core/templates/base.html b/core/templates/base.html index 23b9e9c..f11e9ea 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -70,9 +70,9 @@ History {% if user.is_staff %} - + {% endif %} @@ -148,6 +149,9 @@ Projects + + Absences + {% endif %} Receipts diff --git a/core/templates/core/absences/edit.html b/core/templates/core/absences/edit.html index 5563834..10d9046 100644 --- a/core/templates/core/absences/edit.html +++ b/core/templates/core/absences/edit.html @@ -3,20 +3,21 @@ {% block title %}Edit Absence | FoxFitt{% endblock %} {% block content %} -{# === EDIT ABSENCE PAGE === - Single form for editing one Absence row. The is_paid checkbox is - the magic field — toggling it on creates a Bonus PayrollAdjustment - at the worker's daily rate; toggling it off deletes the adjustment - (UNLESS it's already been paid, in which case the view surfaces an - error). +{% comment %} +=== EDIT ABSENCE PAGE === +Single form for editing one Absence row. The is_paid checkbox is +the magic field — toggling it on creates a Bonus PayrollAdjustment +at the worker's daily rate; toggling it off deletes the adjustment +(UNLESS it's already been paid, in which case the view surfaces an +error). - Why two forms? HTML doesn't allow nested
tags. The delete - action needs its own form to POST to /absences//delete/. So - the delete form lives OUTSIDE the edit form (hidden), and the - Delete button inside the edit form uses the HTML5 `form="..."` - attribute to submit the delete form instead of its parent edit - form. -#} +Why two forms? HTML doesn't allow nested tags. The delete +action needs its own form to POST to /absences//delete/. So +the delete form lives OUTSIDE the edit form (hidden), and the +Delete button inside the edit form uses the HTML5 `form="..."` +attribute to submit the delete form instead of its parent edit +form. +{% endcomment %}

Edit Absence

@@ -24,8 +25,10 @@ {% for m in messages %}
{{ m }}
{% endfor %} {% endif %} - {# Hidden sibling form so the Delete button can submit to its own URL. - Hidden via inline style — only the button inside the edit form is visible. #} + {% comment %} + Hidden sibling form so the Delete button can submit to its own URL. + Hidden via inline style — only the button inside the edit form is visible. + {% endcomment %} @@ -71,8 +74,10 @@ {% endif %}
- {# `form="absence-delete-form"` makes this button submit the - hidden delete form rather than its enclosing edit form. #} + {% comment %} + `form="absence-delete-form"` makes this button submit the + hidden delete form rather than its enclosing edit form. + {% endcomment %} diff --git a/core/templates/core/absences/list.html b/core/templates/core/absences/list.html index c9b550d..1e3a0ae 100644 --- a/core/templates/core/absences/list.html +++ b/core/templates/core/absences/list.html @@ -4,10 +4,11 @@ {% block title %}Absences | FoxFitt{% endblock %} {% block content %} -{# === ABSENCES LIST PAGE === - Filtered, paginated table of absences. Each row links to edit and - has an inline delete form. CSV export button only shows for admin. -#} +{% comment %} +=== ABSENCES LIST PAGE === +Filtered, paginated table of absences. Each row links to edit and +has an inline delete form. CSV export button only shows for admin. +{% endcomment %}
{# === Page header — title + log/export action buttons === #} @@ -162,13 +163,14 @@ {% endif %}
-{# === Reason badge colours === - Reuses the existing semantic badge palette from custom.css so dark/ - light theme switching works out of the box. Green-ish for "valid" - leave (sick/family/annual), neutral for unpaid/other, amber for IOD, - purple-ish (deduction) for the disciplinary reasons (suspension, - absconded). -#} +{% comment %} +=== Reason badge colours === +Reuses the existing semantic badge palette from custom.css so dark/ +light theme switching works out of the box. Green-ish for "valid" +leave (sick/family/annual), neutral for unpaid/other, amber for IOD, +purple-ish (deduction) for the disciplinary reasons (suspension, +absconded). +{% endcomment %}