From da3aaafbcd4352cc41b63a9554e05b7022527797 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 20 Jul 2022 21:36:52 -0500 Subject: [PATCH] Misc deform template improvements for sake of a custom form --- tailbone/templates/deform/autocomplete_jquery.pt | 5 +++-- tailbone/templates/deform/select.pt | 3 ++- tailbone/templates/deform/select_dynamic.pt | 3 ++- tailbone/templates/deform/textinput.pt | 9 +++++---- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tailbone/templates/deform/autocomplete_jquery.pt b/tailbone/templates/deform/autocomplete_jquery.pt index c0e79c29..4ebc17b2 100644 --- a/tailbone/templates/deform/autocomplete_jquery.pt +++ b/tailbone/templates/deform/autocomplete_jquery.pt @@ -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|'';"> + diff --git a/tailbone/templates/deform/select.pt b/tailbone/templates/deform/select.pt index 4d09f16f..4295380b 100644 --- a/tailbone/templates/deform/select.pt +++ b/tailbone/templates/deform/select.pt @@ -69,7 +69,8 @@ native-size size; style style; v-model vmodel; - @input input_handler;"> + @input input_handler; + attributes|field.widget.attributes|{};"> + @input input_handler; + attributes|field.widget.attributes|{};">