                              :districtid (.-id (.-district dmt))
                              :isactive true})
         focus (r/atom nil)]
-    (fn [] [mutation-template
+    (fn [] [update-mutation-template
            "Mutation Update Form"
            update-data
            focus

       [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]
       [form-input-element :senddate "Send Date" "date" data-set focus]
       [form-input-element :receiveddate "Received Date" "date" data-set focus]
       [form-input-element :remarks "Remarks" "text" 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 map-mutation-data [mut]
  {:id (if (nil? (mut :id))0 (int (mut :id))) :nameofthefirstparty (mut :nameofthefirstparty)

(defn mutation-add-template []
  (let [add-data (r/atom {:isactive true})
        focus (r/atom nil)]
    (fn [] [add-mutation-template "Mutation Add Form" add-data focus #(add-form-onclick add-data focus)])))


(defn mutation-update-template [id dmt]
