                              :isactive true})
         focus (r/atom nil)]
     (fn [] [revenue-template
-            "Revenue Update Form"
-            update-data focus
-            #(revenue-update-form-onclick update-data focus)])))
+           "Revenue Update Form"
+           update-data focus
+           #(revenue-update-form-onclick update-data focus)])))
 
 
 (defn revenue-update[id]

                  (set-key-value :mutations (.-data dt))
                  (set-key-value :total-pages (get-total-rec-no (.-pagesCount dt)))
                  (set-key-value :page-location  [render-mutations (get-value! :mutations)])))]
    (set-key-value :is-searched-results false)
    (http-get (str serverhost "mutations?pageIndex="(dec (get-value! :current-page))"&pageSize=10") onres)))


(defroute documents-path "/mutations/add" []
  (let [onres (fn[json](
                        (set-key-value :villages (getdata json))
                        (set-page! [mutation-add-template])))]
    (http-get (str serverhost "villages") onres)))

(defroute documents-path1 "/mutations/update/:id" [id]
  (let [onres (fn[json](
                       (set-key-value :villages (getdata json))
                       (set-page! [mutation-update-template id
                                   (first (filter (fn[obj]
                                                    (=(.-id obj) (.parseInt js/window id))) (get-value! :mutations)))])))]
    (http-get (str serverhost "villages") onres)))

;; ---------------------------------------------------------
;; rvenue-records

       [khasragirdwani-input-row :year "Year" "date" data-set focus]
       [khasragirdwani-input-row :racknumber "Rack Number" "text" data-set focus]
       [khasragirdwani-input-row :description "description" "text" data-set focus]
       [:div.box-footer
        [:button.btn.btn-default {:on-click khasragirdwani-form-cancel} "Cancel"]
        [:button.btn.btn-info.pull-right {:on-click save-function} "Save"]]]]]]])


(defn khasragirdwani-add-form-onclick [data-set focus]
