                                             :placeholder "Enter search text.."}]]
        [:input {:type "button" :value "Search"
                 :class "btn btn-primary" :on-click search}]
-       (url-format "#/documents/add" "Document")
-       [:input {:id "getall" :type "button" :value "Get-All"
+       [:input {:type "button" :value "Add"
+                :class "btn btn-primary" :on-click add}]
+       ;; (url-format "#/documents/add" "Document")
+       [:input {:id "getall" :type "button" :value "Refresh"
                 :class "btn btn-primary" :on-click get-all-click}]]
       [:div {:class "box-body"}
 

                    (clj->js (keep-indexed
                              #(if (and (>= %1 pag-start) (<= %1 pag-end)) %2) data))))))


(defn is-all-search-fields-empty?
  [date1 date2 srcstr]
  (and (st/blank? date1)
       (st/blank? date2)
       (st/blank? srcstr)))

(defn url-format [url title]
  [:a {:href url :class "btn btn-primary  glyphicon glyphicon-plus"} title])

                                     (c/from-string dt1)
                                     (c/from-string dt2) dt)))
        (set-key-value :current-page 1)
        (set-key-value :page-location
                       [render-documents
                        (get-new-page-data (get-value! :documents)
                                           (get-value! :current-page))]))))


(defn row [label input]
