From 54efd370ff2d77f6789c05aa0acdbffe39f6e40f Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Thu, 10 Jul 2025 12:50:00 -0500 Subject: [PATCH] Rename textarea fields in editor and worklog templates for consistency and clarity --- inventory/templates/fragments/_editor_fragment.html | 2 +- inventory/templates/inventory.html | 2 +- inventory/templates/worklog.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory/templates/fragments/_editor_fragment.html b/inventory/templates/fragments/_editor_fragment.html index 8bd2c83..4277bd7 100644 --- a/inventory/templates/fragments/_editor_fragment.html +++ b/inventory/templates/fragments/_editor_fragment.html @@ -18,7 +18,7 @@
- +
diff --git a/inventory/templates/inventory.html b/inventory/templates/inventory.html index 2768dfa..545a67c 100644 --- a/inventory/templates/inventory.html +++ b/inventory/templates/inventory.html @@ -152,7 +152,7 @@ name: document.querySelector("input[name='name']").value || null, serial: document.querySelector("input[name='serial']").value || null, model: document.querySelector("input[name='model']").value || null, - notes: document.querySelector("textarea[name='notes']").value || null, + notes: document.querySelector("textarea[name='editornotes']").value || null, owner_id: parseInt(document.querySelector("select#userList").value) || null, brand_id: parseInt(document.querySelector("select[name='brand']").value) || null, location_id: parseInt(document.querySelector("select#room").value) || null, diff --git a/inventory/templates/worklog.html b/inventory/templates/worklog.html index 89e1acc..818a153 100644 --- a/inventory/templates/worklog.html +++ b/inventory/templates/worklog.html @@ -173,7 +173,7 @@ saveButton.addEventListener("click", async (e) => { e.preventDefault(); - const updateTextareas = Array.from(document.querySelectorAll("textarea[name^='update']")); + const updateTextareas = Array.from(document.querySelectorAll("textarea[name^='editor']")); const updates = updateTextareas .map(el => { const content = el.value.trim();