Enhance dynamic editor functionality by adding refresh_url and field_name parameters
This commit is contained in:
parent
7ad86cf53f
commit
22dfc8411a
1 changed files with 4 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue