From 57cb787b3077a60e7ec18542d80e38db44bb03f2 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 24 Sep 2021 17:28:14 -0400 Subject: [PATCH] Add placeholder to customer lookup for new order also hide phone field unless customer is identified --- .../static/js/tailbone.buefy.autocomplete.js | 1 + tailbone/templates/autocomplete.mako | 1 + tailbone/templates/custorders/create.mako | 17 +++++++++-------- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/tailbone/static/js/tailbone.buefy.autocomplete.js b/tailbone/static/js/tailbone.buefy.autocomplete.js index 0d61ca79..2b442416 100644 --- a/tailbone/static/js/tailbone.buefy.autocomplete.js +++ b/tailbone/static/js/tailbone.buefy.autocomplete.js @@ -10,6 +10,7 @@ const TailboneAutocomplete = { initialLabel: String, assignedValue: String, assignedLabel: String, + placeholder: String, }, data() { diff --git a/tailbone/templates/autocomplete.mako b/tailbone/templates/autocomplete.mako index 0ab9f49c..05339e12 100644 --- a/tailbone/templates/autocomplete.mako +++ b/tailbone/templates/autocomplete.mako @@ -66,6 +66,7 @@ :name="name" v-show="!assignedValue && !selected" v-model="value" + :placeholder="placeholder" :data="data" @typing="getAsyncData" @select="selectionMade" diff --git a/tailbone/templates/custorders/create.mako b/tailbone/templates/custorders/create.mako index f0e5d5b3..55797ed6 100644 --- a/tailbone/templates/custorders/create.mako +++ b/tailbone/templates/custorders/create.mako @@ -108,16 +108,17 @@
- - + + - +