a good experience for dates.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
(:require
|
||||
[clojure.spec.alpha :as s]
|
||||
[auto-ap.entities.invoice :as invoice]
|
||||
[auto-ap.views.utils :refer [bind-field date-picker date->str local-now standard]]
|
||||
[auto-ap.views.utils :refer [bind-field date-picker-optional date->str local-now standard]]
|
||||
[cljs-time.core :as t]
|
||||
[re-frame.core :as re-frame]))
|
||||
|
||||
@@ -37,27 +37,21 @@
|
||||
[:div.field.has-addons
|
||||
[:div.control
|
||||
[bind-field
|
||||
[date-picker {:class-name "input is-fullwidth"
|
||||
:class "input"
|
||||
:format-week-number (fn [] "")
|
||||
:previous-month-button-label ""
|
||||
:placeholder-text "Start"
|
||||
:next-month-button-label ""
|
||||
:next-month-label ""
|
||||
:event on-change-event
|
||||
:type "date"
|
||||
:field [:start]
|
||||
:subscription value}]]]
|
||||
[date-picker-optional
|
||||
{:event on-change-event
|
||||
:type "date2"
|
||||
:placeholder "Start"
|
||||
:class "is-small"
|
||||
:field [:start]
|
||||
:subscription value
|
||||
:output :text}]]]
|
||||
[:div.control
|
||||
[bind-field
|
||||
[date-picker {:class-name "input is-fullwidth"
|
||||
:class "input"
|
||||
:format-week-number (fn [] "")
|
||||
:previous-month-button-label ""
|
||||
:placeholder-text "End"
|
||||
:next-month-button-label ""
|
||||
:event on-change-event
|
||||
:next-month-label ""
|
||||
:type "date"
|
||||
:field [:end]
|
||||
:subscription value}]]]]])
|
||||
[date-picker-optional
|
||||
{:event on-change-event
|
||||
:type "date2"
|
||||
:class "is-small"
|
||||
:placeholder "End"
|
||||
:field [:end]
|
||||
:subscription value
|
||||
:output :text}]]]]])
|
||||
|
||||
Reference in New Issue
Block a user