From 42b87d08cc40e3d92187e41fb4f495bad1099156 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Tue, 19 Aug 2025 16:22:38 -0500 Subject: [PATCH] Rename dynamic_editor macro to render_editor for consistency across templates --- inventory/templates/fragments/_editor_fragment.html | 2 +- inventory/templates/inventory.html | 4 ++-- inventory/templates/worklog.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inventory/templates/fragments/_editor_fragment.html b/inventory/templates/fragments/_editor_fragment.html index e80779f..418423e 100644 --- a/inventory/templates/fragments/_editor_fragment.html +++ b/inventory/templates/fragments/_editor_fragment.html @@ -1,6 +1,6 @@ {% import "fragments/_icon_fragment.html" as icons %} -{% macro dynamic_editor(id, title, mode='edit', content=none, enabled=true, create_url=none, refresh_url=none, +{% macro render_editor(id, title, mode='edit', content=none, enabled=true, create_url=none, refresh_url=none, update_url=none, delete_url=none, field_name=none, record_id=none) %}
{% for update in log.updates %} - {{ editor.dynamic_editor( + {{ editor.render_editor( id = update.id, title = update.timestamp.strftime('%Y-%m-%d %H:%M:%S'), mode = 'view', @@ -238,7 +238,7 @@ ) }} {% endfor %}