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}" v-model="${vmodel}"
initial-label="${field_display}" initial-label="${field_display}"
tal:attributes=":assigned-label assigned_label or 'null'; tal:attributes=":assigned-label assigned_label or 'null';
@input input_callback or 'null'; @input input_callback|'';
@new-label new_label_callback or 'null';"> @new-label new_label_callback|'';">
</tailbone-autocomplete> </tailbone-autocomplete>
</div> </div>

View file

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

View file

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

View file

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