Enhance dynamic editor functionality by adding refresh_url and field_name parameters

This commit is contained in:
Yaro Kasear 2025-08-19 16:19:47 -05:00
parent 7ad86cf53f
commit 22dfc8411a

View file

@ -283,9 +283,11 @@
{{ editor.dynamic_editor( {{ editor.dynamic_editor(
id = 'updates' + (note.id | string), id = 'updates' + (note.id | string),
title = title, title = title,
content = note.content,
mode = 'view', mode = 'view',
enabled = false enabled = false,
refresh_url = url_for('ui.get_value', model_name='work_note'),
field_name='content',
record_id=note.id
) }} ) }}
{% endfor %} {% endfor %}
</div> </div>