                 (r/render [render-documents (getdata json)]
                           (.getElementById js/document "app1")))]
     (http-get (str "http://localhost:8193/documents/title/" stext) onres)))
+
 (defn row [label input]
   [:div.row
    [:div.col-md-2 [:label label]]
    [:div.col-md-5 input]])
+
 (defn radio [label name value]
   [:div.radio
    [:label
     [:input {:field :radio :name name :value value}]
     label]])
+
 (defn input
   ([label type id value]
    (row label [:input.form-control {:type type :id id :defaultValue value}]))

   :title (getinputvalue "title")
   :employeename (getinputvalue "employeename")
   :date (getinputvalue "date")
   :location (getinputvalue "location")
   })


(defn save [event]
  (let [onres (fn[data] (set! (.-location js/window) "http://localhost:8193"))]

                (.assign js/location "/"))]
    (http-post "http://localhost:8193/documents/update"
               onres (.serialize (Serializer.) (clj->js (get-update-documents-formdata))))))

(defn document-update-template [id dmt]
  [:div.form-group {:id "update" :class "form-group"}
