Add new option "as_id" to Pick*DynamicType

This option will make the app return a single id of the entity in data, and not the entity json.
This commit is contained in:
2023-11-27 13:23:36 +01:00
parent 1a9af6b0b1
commit f11f7498d7
5 changed files with 30 additions and 8 deletions

View File

@@ -256,7 +256,8 @@
data-types="{{ form.vars['types']|json_encode }}"
data-multiple="{{ form.vars['multiple'] }}"
data-uniqid="{{ form.vars['uniqid'] }}"
data-suggested="{{ form.vars['suggested']|json_encode|escape('html_attr') }}"></div>
data-suggested="{{ form.vars['suggested']|json_encode|escape('html_attr') }}"
data-as-id="{{ form.vars['as_id'] }}"></div>
{% endblock %}
{% block pick_postal_code_widget %}