     (fn []
       (println @tmp-new-tea)
       [:div.row
-        [:div.col-md-12
-          [:input.form-control {:type "text"
-                                :placeholder "Name of New Tea"
-                                :value @tmp-new-tea
-                                :on-change #(re-frame/dispatch [:new-tea-entry (value-event %)])}]
-          [:input.btn.btn-primary {:type "button"
-                                   :value (str "Add " @tmp-new-tea)
-                                   :on-click #(println "button clicked")}]]])))
-
-;;(post-to-teas-db @tmp-new-tea)
-
-;(defn tea-edit
-  ;"The edit/delete form component"
-  ;[]
-  ;(fn []
-    ;[:div.form-group
-     ;[:div.row [:div.col-md-12]
-       ;[:button.btn.btn-info {:on-click (fn [_] (swap! show-edit not))} "Show/Hide edit form"]
-       ;[:div.p (str "Preview: " (or @edit-tea-snap "*no tea selected*") " -> " (or @edit-tea "*no tea selected*"))]
-       ;[:div.p]
-       ;[:form {:style {:visibility (if @show-edit
-                                     ;"visible"
-                                     ;"hidden")}}
-        ;[:input.form-control {:field :text :id :change-tea :value @edit-tea :on-change sync-edit-tea
-         ;[:input.btn.btn-info {:type "submit" :value "Update Tea Name" :on-click #((update-tea @edit-tea-id @edit-tea))}]
-                                                                                  ;(reset! edit-tea nil)
-                                                                                  ;(reset! edit-tea-snap nil)}]]
-       ;[:input.btn.btn-danger {:type "button" :value (str "Delete " @edit-tea-snap) :on-click #(delete-tea @edit-tea)}]]]))
-
-;; tea-edit can be re-written so that it will look like the tea is being
-;; modified in place on the DOM -- as a sort of preview -- then once the
-;; update button is clicked, the result can be sent to the db.
-
-;; this passes the value of the new tea atom into the post-to-teas-db function
+       [:div.col-md-12
+        [:input.form-control {:type "text"
+                              :placeholder "Name of New Tea"
+                              :value @tmp-new-tea
+                              :on-change #(re-frame/dispatch [:new-tea-entry (value-event %)])}]
+        [:input.btn.btn-primary {:type "button"
+                                 :value (str "Add " @tmp-new-tea)
+                                 :on-click #(println "button clicked")}]]])))
 
 (defn list-page []
   [:div.container

       [:div {:dangerouslySetInnerHTML
              {:__html (md->html docs)}}]]])])


;; (def teas-list (reagent/atom nil))
;; (def new-tea (reagent/atom nil))
(def edit-tea-id (reagent/atom nil))
(def edit-tea (reagent/atom nil))
(def edit-tea-snap (reagent/atom nil))
(def show-edit (reagent/atom false))

(re-frame/register-handler
  :process-teas-response
  (fn [app-db [_ response]]

  (let [teas (re-frame/subscribe [:teas])]
    (fn []
      [:div.row
       [:table.table.table-striped
        [:thead
         [:tr
          [:th "Tea Name"]]]
        [:tbody
         (for [tea @teas]
           ^{:key tea}
           [tea-edit-toggler tea])]]])))

(defn tea-adder
  "A component for the tea-adder form"
