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

(defn http-get [url callback]
  (xhr/send url callback))


(defn http-post [url callback data]
  (xhr/send url callback "POST" data  (structs/Map. (clj->js {:Content-Type "application/json"}))))


   [:div#dt (input "Date":Date :date)]
   [:div#loc (input "Location":text :location)]
   [:input {:type "button" :value "Save"
            :class "btn btn-primary" :on-click save}]])

(defn get-update-documents-formdata []
  {
