 
 
 (defroute documents-path "/documents/add" []
-  (set-page! [document-template]))
+  (set-page! [document-template1]))
 
 (defroute documents-path1 "/documents/update/:id" [id]
- (set-page! [document-update-template id
+  (set-page! [document-update-template1 id
               (first (filter (fn[obj]
                                (=(.-id obj) (.parseInt js/window id))) (get-value! :documents)))]))
 

                        }])


(defn input-validate [id label span-class ttype data-set placeholder focus]
  (let [input-focus (r/atom nil)]
    (fn []
      [:div.form-group

                                                                      (get-value! :current-page))])))]
    (http-get "http://localhost:8193/documents/all" onres)))

(defn click-update[id]
  (secretary/dispatch! (str "#/documents/update/" id)))

;; (defn docupdate [event]
;;   (let [onres (fn[data]
;;                 (secretary/dispatch! "/documents"))]
;;     (http-post "http://localhost:8193/documents/update"
;;                onres (.serialize (Serializer.) (clj->js (get-update-documents-formdata))))))

(defn delete[id]
  (let [onres (fn [json]
