moved to new date picker.
This commit is contained in:
@@ -13,13 +13,10 @@
|
||||
[auto-ap.views.components.typeahead.vendor
|
||||
:refer [search-backed-typeahead]]
|
||||
[auto-ap.views.utils
|
||||
:refer [date->str
|
||||
date-picker
|
||||
date-picker-friendly
|
||||
:refer [date-picker
|
||||
dispatch-event
|
||||
horizontal-field
|
||||
multi-field
|
||||
standard]]
|
||||
multi-field]]
|
||||
[bidi.bidi :as bidi]
|
||||
[cljs-time.coerce :as coerce]
|
||||
[cljs-time.core :as t]
|
||||
@@ -135,15 +132,7 @@
|
||||
:location (:location x)})
|
||||
(:ezcater-locations new-client-data))
|
||||
|
||||
:locked-until (cond (not (:locked-until new-client-data))
|
||||
nil
|
||||
|
||||
(instance? goog.date.Date (:locked-until new-client-data))
|
||||
(date->str (:locked-until new-client-data) standard)
|
||||
|
||||
:else
|
||||
(:locked-until new-client-data)
|
||||
)
|
||||
:locked-until (:locked-until new-client-data)
|
||||
:locations (mapv :location (:locations new-client-data))
|
||||
:matches (mapv :match (:matches new-client-data))
|
||||
:location-matches (:location-matches new-client-data)
|
||||
@@ -171,15 +160,7 @@
|
||||
:numeric-code (when-not (str/blank? numeric-code)
|
||||
(js/parseInt numeric-code))
|
||||
:include-in-reports include-in-reports
|
||||
:start-date (cond (not start-date)
|
||||
nil
|
||||
|
||||
(instance? goog.date.Date start-date)
|
||||
(date->str start-date standard)
|
||||
|
||||
:else
|
||||
start-date
|
||||
)
|
||||
:start-date start-date
|
||||
:type type
|
||||
:id id
|
||||
:sort-order i
|
||||
@@ -204,7 +185,7 @@
|
||||
:<- [::subs/route-params]
|
||||
:<- [::subs/clients-by-id]
|
||||
(fn [[rp clients-by-id]]
|
||||
(or (clients-by-id (:id rp))
|
||||
(or (get clients-by-id (:id rp))
|
||||
{})))
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
@@ -405,15 +386,9 @@
|
||||
:field [:numeric-code]}]]]
|
||||
[form-builder/field
|
||||
"Start date"
|
||||
[date-picker {:class-name "input"
|
||||
:class "input"
|
||||
:format-week-number (fn [] "")
|
||||
:previous-month-button-label ""
|
||||
:placeholder "mm/dd/yyyy"
|
||||
:next-month-button-label ""
|
||||
:next-month-label ""
|
||||
:type "date"
|
||||
:field [:start-date]}]]]
|
||||
[date-picker {:type "date"
|
||||
:output :cljs-date
|
||||
:field [:start-date]}]]]
|
||||
(when (#{:check ":check"} type )
|
||||
[:div
|
||||
|
||||
@@ -600,7 +575,8 @@
|
||||
|
||||
[form-builder/field
|
||||
"Locked Until"
|
||||
[date-picker-friendly {:type "date"
|
||||
[date-picker {:type "date"
|
||||
:output :cljs-date
|
||||
:field [:locked-until]
|
||||
:style {:width "15em"}}]]]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user