   (secretary/dispatch! "/"))
 
 
-(defn mutation-template [doc-name data-set focus save-function]
+
+(defn form-input-check-element [id label ttype data-set focus]
+  (let [input-focus (r/atom nil)
+        check (r/atom true)]
+    (fn []
+      (if (id @data-set)
+        [:div.form-group
+         [:label.col-sm-3.control-label label]
+         [:div.col-sm-6 [input-element id ttype data-set label input-focus]]
+         [:div.col-sm-3 [:div]]]
+        [:div.form-group
+         [:div.col-sm-1
+          [:input {:type "checkbox"
+                   :style {:width "17px" :height "17px" :float "right"}
+                   :on-change #(swap! check not)}]] 
+         [:label.col-sm-2.control-label label]
+         [:div.col-sm-6
+          (if @check
+            [:div]
+            [input-element id ttype data-set label input-focus])]
+         [:div.col-sm-3 [:div]]]
+        ))))
+
+(defn add-mutation-template [doc-name data-set focus save-function]
   [:div.container
    [:div.col-md-12
     [:div.box.box-info

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

(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]
