        ;;[:span (str @data-set)]
        ]]]]])
 
+(defn upd-check-input-element [data-set focus]
+  (let [check1 (r/atom true)
+        check2 (r/atom true)]
+    (fn []
+      [:div
+       (if (:senddate @data-set)
+         [:div.form-group
+          [:label.col-sm-3.control-label "Send Date"]
+          [:div.col-sm-6 [date-input :senddate data-set "Send Date" true]]
+          [:div.col-sm-3 [:div]]]
+         [:div
+          [:div.form-group
+           [:div.col-sm-3
+            [:input {:type "checkbox"
+                     :style {:width "17px" :height "17px" :float "right"}
+                     :on-change #(swap! check1 not)}]] 
+           [:label.col-sm-6 "Check here to enter Send date"]
+           [:div.col-sm-3 [:div]]]
+          (if @check1
+            [:div]
+            [:div.form-group
+             [:label.col-sm-3.control-label "Send Date"]
+             [:div.col-sm-6 [date-input :senddate data-set "Send Date" false]]
+             [:div.col-sm-3 [:div]]])])
+       [:div.form-group
+        [:div.col-sm-3
+         [:input {:type "checkbox"
+                  :style {:width "17px" :height "17px" :float "right"}
+                  :on-change #(swap! check2 not)}]] 
+        [:label.col-sm-6 "Check here to enter received date"]
+        [:div.col-sm-3 [:div]]]
+       (if @check2
+         [:div]
+         [:div.form-group
+          [:label.col-sm-3.control-label "Received Date"]
+          [:div.col-sm-6 [date-input :receiveddate data-set "Received Date" false]]
+          [:div.col-sm-3 [:div]]])
+       [form-input-element :remarks "Remarks" "text" data-set focus]])))
 
 
 

                     :title [[v/required :message "Field is required"]]
                     :remarks [[v/required :message "Field is required"]]
                     :dispatcheddate [[v/required :message "Field is required"]]
                     :receiveddate [[v/required :message "Field is required"]]
                     )))



       [form-input-element :o4number "O4 Number" "text" data-set focus]
       [form-input-element :o6number "O6 Number" "text" data-set focus]
       [form-input-element :racknumber "Rack Number" "text" data-set focus]
       [add-check-input-element :senddate "Send Date" data-set focus]
       ]
      [:div.box-footer
       [:button.btn.btn-default {:on-click form-cancel} "Cancel"]
