All data on checks are now set up.

This commit is contained in:
Bryce Covert
2018-05-17 20:06:46 -07:00
parent e055a1e120
commit 03dd882da4
8 changed files with 79 additions and 32 deletions

View File

@@ -6,6 +6,7 @@
[auto-ap.subs :as subs]
[auto-ap.events.admin.vendors :as events]
[auto-ap.entities.vendors :as entity]
[auto-ap.entities.address :as address]
[clojure.spec.alpha :as s]
[auto-ap.views.utils :refer [login-url dispatch-value-change dispatch-event bind-field horizontal-field]]
[cljs.reader :as edn]
@@ -98,8 +99,8 @@
[bind-field
[:input.input.is-expanded {:type "text"
:placeholder "1700 Pennsylvania Ave"
:field :address1
:spec ::entity/address1
:field [:address :street1]
:spec ::address/street1
:event ::events/change
:subscription editing-vendor}]]]]
@@ -109,8 +110,8 @@
[bind-field
[:input.input.is-expanded {:type "text"
:placeholder "Suite 400"
:field :address2
:spec ::entity/address2
:field [:address :street2]
:spec ::address/street2
:event ::events/change
:subscription editing-vendor}]]]]
@@ -121,8 +122,8 @@
[bind-field
[:input.input.is-expanded {:type "text"
:placeholder "Cupertino"
:field :city
:spec ::entity/city
:field [:address :city]
:spec ::address/city
:event ::events/change
:subscription editing-vendor}]]]
[:div.control
@@ -130,16 +131,16 @@
[bind-field
[:input.input {:type "text"
:placeholder "CA"
:field :state
:spec ::entity/state
:field [:address :state]
:spec ::address/state
:event ::events/change
:subscription editing-vendor}]]]
[:div.control
[:p.help "Zip"]
[bind-field
[:input.input {:type "text"
:field :zip
:spec ::entity/zip
:field [:address :zip]
:spec ::address/zip
:event ::events/change
:subscription editing-vendor
:placeholder "95014"}]]]]