Misc deform template improvements

for sake of a custom form
This commit is contained in:
Lance Edgar 2022-07-20 21:36:52 -05:00
parent 10628eeb91
commit da3aaafbcd
4 changed files with 12 additions and 8 deletions

View file

@ -113,8 +113,9 @@
v-model="${vmodel}"
initial-label="${field_display}"
tal:attributes=":assigned-label assigned_label or 'null';
@input input_callback or 'null';
@new-label new_label_callback or 'null';">
@input input_callback|'';
@new-label new_label_callback|'';">
</tailbone-autocomplete>
</div>

View file

@ -69,7 +69,8 @@
native-size size;
style style;
v-model vmodel;
@input input_handler;">
@input input_handler;
attributes|field.widget.attributes|{};">
<tal:loop tal:repeat="item values">
<optgroup tal:condition="isinstance(item, optgroup_class)"

View file

@ -20,7 +20,8 @@
size size;
style style;
v-model vmodel;
@input input_handler;">
@input input_handler;
attributes|field.widget.attributes|{};">
<option v-for="item in ${name}_options"
tal:attributes=":key 'item.value';

View file

@ -28,10 +28,11 @@
<div tal:condition="use_buefy"
tal:define="vmodel vmodel|'field_model_' + name;"
tal:omit-tag="">
<b-input name="${name}"
v-model="${vmodel}"
placeholder="${placeholder}"
autocomplete="${autocomplete}">
<b-input tal:attributes="name name;
v-model vmodel;
placeholder placeholder;
autocomplete autocomplete;
attributes|field.widget.attributes|{};">
</b-input>
</div>
</span>