started working on validation on action form.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
[reagent.core :as r]
|
||||
[clojure.string :as str]
|
||||
[auto-ap.entities.companies :as company]
|
||||
[auto-ap.entities.invoice :as invoice]
|
||||
[auto-ap.entities.vendors :as vendor]
|
||||
[auto-ap.views.utils :refer [dispatch-event bind-field horizontal-field]]
|
||||
[auto-ap.utils :refer [by]]
|
||||
@@ -280,6 +281,7 @@
|
||||
:type "typeahead"
|
||||
:field [:vendor-id]
|
||||
:event change-event
|
||||
:spec ::invoice/vendor-id
|
||||
:subscription data}]]]
|
||||
[horizontal-field
|
||||
[:label.label "Date"]
|
||||
@@ -287,6 +289,7 @@
|
||||
[:input.input {:type "text"
|
||||
:field [:date]
|
||||
:event change-event
|
||||
:spec ::invoice/date
|
||||
:subscription data}]]]
|
||||
|
||||
[horizontal-field
|
||||
@@ -296,6 +299,7 @@
|
||||
:type "typeahead"
|
||||
:field [:company-id]
|
||||
:event change-event
|
||||
:spec ::invoice/company-id
|
||||
:subscription data}]]]
|
||||
|
||||
[horizontal-field
|
||||
@@ -304,6 +308,7 @@
|
||||
[:input.input {:type "text"
|
||||
:field [:invoice-number]
|
||||
:event change-event
|
||||
:spec ::invoice/invoice-number
|
||||
:subscription data}]]]
|
||||
|
||||
[horizontal-field
|
||||
@@ -316,6 +321,7 @@
|
||||
:field [:total]
|
||||
:event change-event
|
||||
:subscription data
|
||||
:spec ::invoice/total
|
||||
:step "0.01"}]]]]]]))
|
||||
|
||||
(def unpaid-invoices-page
|
||||
|
||||
Reference in New Issue
Block a user