Rename textarea fields in editor and worklog templates for consistency and clarity

This commit is contained in:
Yaro Kasear 2025-07-10 12:50:00 -05:00
parent f7570a0938
commit 54efd370ff
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@
<div class="tab-content" id="tabContent{{ id }}">
<div class="tab-pane fade{% if mode == 'view' %} show active border border-top-0{% endif %} p-2 markdown-body" id="viewer{{ id }}"></div>
<div class="tab-pane fade{% if mode == 'edit' %} show active border border-top-0{% endif %}" id="editor{{ id }}">
<textarea id="textEditor{{ id }}" name="update{{ id }}" class="form-control border-top-0 rounded-top-0" data-note-id="{{ id }}">{{ content if content }}</textarea>
<textarea id="textEditor{{ id }}" name="editor{{ id }}" class="form-control border-top-0 rounded-top-0" data-note-id="{{ id }}">{{ content if content }}</textarea>
</div>
</div>
</div>

View file

@ -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,

View file

@ -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();