            [:div.col-sm-3 [:div]]]
           [form-input-element :remarks "Remarks" "text" data-set focus]
           ])])))
+
+(def button-tool-bar (r/adapt-react-class (aget js/ReactBootstrap "ButtonToolbar")))
+(def button (r/adapt-react-class (aget js/ReactBootstrap "Button")))
 
 
 (defn add-mutation-template [doc-name data-set focus save-function]

       [add-check-input-element :senddate "Send Date" data-set focus]
       ]
      [:div.box-footer
       [:button.btn.btn-default {:on-click form-cancel} "Cancel"]
       [:button.btn.btn-info.pull-right {:on-click save-function} "Save"]
       ;;[: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]])))



(defn update-mutation-template [doc-name data-set focus save-function]

     ^{:key (.-id d)}
     [:option {:value (.-id d)} (.-villagename d)])])



(defn render-mutations [mutations]
  [:div
