diff --git a/core/templates/base.html b/core/templates/base.html index 205e0d4..ba0349a 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -392,6 +392,260 @@ })(); +{# === WORK LOG PAYROLL MODAL — click handler + safe DOM builder === #} +{# Builds the modal body from JSON via createElement + textContent. #} +{% if user.is_authenticated and user.is_staff or user.is_superuser %} + +{% endif %} + {% block extra_js %}{% endblock %} + +{# === WORK LOG PAYROLL MODAL (admin-only) === #} +{# Hidden by default. Any element with data-log-id anywhere in the app #} +{# triggers this modal. Fetches JSON and builds the DOM safely. #} +{% if user.is_authenticated and user.is_staff or user.is_superuser %} +
+{% endif %}