From 9a8b8828e27086c412190ea93fb3827b9ba46da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=9D=D0=B0=D0=B4=D0=B5?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Tue, 28 Oct 2025 09:35:20 +0300 Subject: [PATCH] refactor: Replace remaining duplicate utilities with ES6 imports - Replaced esc() and norm() in _department_controls.html with imports - Replaced norm() in invite_to_department.html with import - All inline utility duplicates now eliminated across templates - Total: ~20 lines of duplicate code removed - All 17 tests passing --- .../employees/_department_controls.html | 12 +++--- .../employees/invite_to_department.html | 39 ++++++++++--------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/backend/templates/employees/_department_controls.html b/backend/templates/employees/_department_controls.html index 4fc88ed7..db75c04e 100644 --- a/backend/templates/employees/_department_controls.html +++ b/backend/templates/employees/_department_controls.html @@ -297,15 +297,15 @@ } document.querySelectorAll('textarea[data-autogrow]').forEach(bind); })(); +{% load static %} -