more viewing from UI.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
[:id :name :locations [:bank-accounts [:id :number :check-number :name :type] ]
|
||||
[:address [:street1 :street2 :city :state :zip]]]]
|
||||
[:vendor
|
||||
[:id :name :default-expense-account :primary-contact :primary-email :primary-phone :secondary-contact :secondary-email :secondary-phone :print-as :invoice-reminder-schedule :code]]]}
|
||||
[:id :name :default-expense-account [:primary-contact [:name :phone :email :id]] [:secondary-contact [:id :name :phone :email]] :print-as :invoice-reminder-schedule :code]]]}
|
||||
|
||||
:on-success [::received-initial]}}))))
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
:query-obj {:venia/queries [[:company
|
||||
[:id :name [:bank-accounts [:id :number :check-number :name :type]]]]
|
||||
[:vendor
|
||||
[:id :name :default-expense-account]]]}
|
||||
[:id :name :default-expense-account [:primary-contact [:name :phone :email :id]] [:secondary-contact [:id :name :phone :email]] :print-as :invoice-reminder-schedule :code]]]}
|
||||
|
||||
:on-success [::received-initial]}
|
||||
:db (assoc db :user (assoc user :token token))}))
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
[:div.control.has-icons-left
|
||||
[bind-field
|
||||
[:input.input.is-expanded {:type "text"
|
||||
:field :primary-contact
|
||||
:field [:primary-contact :name]
|
||||
:spec ::entity/primary-contact
|
||||
:event change-event
|
||||
:subscription vendor}]]
|
||||
@@ -92,7 +92,7 @@
|
||||
[:i.fa.fa-envelope]]
|
||||
[bind-field
|
||||
[:input.input {:type "email"
|
||||
:field :primary-email
|
||||
:field [:primary-contact :email]
|
||||
:spec ::entity/primary-email
|
||||
:event change-event
|
||||
:subscription vendor}]]]
|
||||
@@ -100,7 +100,7 @@
|
||||
[:div.control.has-icons-left
|
||||
[bind-field
|
||||
[:input.input {:type "phone"
|
||||
:field :primary-phone
|
||||
:field [:primary-contact :phone]
|
||||
:spec ::entity/primary-phone
|
||||
:event change-event
|
||||
:subscription vendor}]]
|
||||
@@ -112,7 +112,7 @@
|
||||
[:div.control.has-icons-left
|
||||
[bind-field
|
||||
[:input.input.is-expanded {:type "text"
|
||||
:field :secondary-contact
|
||||
:field [:secondary-contact :name]
|
||||
:spec ::entity/secondary-contact
|
||||
:event change-event
|
||||
:subscription vendor}]]
|
||||
@@ -123,14 +123,14 @@
|
||||
[:i.fa.fa-envelope]]
|
||||
[bind-field
|
||||
[:input.input {:type "email"
|
||||
:field :secondary-email
|
||||
:field [:secondary-contact :email]
|
||||
:spec ::entity/secondary-email
|
||||
:event change-event
|
||||
:subscription vendor}]]]
|
||||
[:div.control.has-icons-left
|
||||
[bind-field
|
||||
[:input.input {:type "phone"
|
||||
:field :secondary-phone
|
||||
:field [:secondary-contact :phone]
|
||||
:spec ::entity/secondary-phone
|
||||
:event change-event
|
||||
:subscription vendor}]]
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
(vec (concat [dom keys] rest))))
|
||||
|
||||
|
||||
|
||||
#_(defn edit-dialog []
|
||||
(let [editing-vendor (:vendor @(re-frame/subscribe [::subs/admin]))
|
||||
companies-by-id @(re-frame/subscribe [::subs/companies-by-id])]
|
||||
|
||||
Reference in New Issue
Block a user