        [:div {:class "col-lg-2"}]
        [:div {:class "col-lg-8"}
         [:div {:class "add-conference-form-container bg-light"}
-         [forms/bind-fields conference-form-template doc]
+         [forms/bind-fields (conference-form-template doc) doc]
          [:button {:class "btn btn-primary btn-md btn-orange" :on-click #(create-conference doc)} "Create"]]]
        [:div {:class "col-lg-2"}]]]]))

       "<p>"series"</p>"
       "</div>"))

(def conference-series-component
  (typeahead/init-typeahead
    conference-series-input
    (typeahead/config {:hint true,
                       :highlight true,
                       :minLength 1})

                          :async true
                          :templates {:suggestion conference-series-template}})))

(defn conference-form-template [data-atom]
  [:div
   [(conference-series-component data-atom)]
   (form-input "Name" [:input {:field :text :id :name :class "form-control" :placeholder "Name of the conference"}])
   [:div {:class "row"}
    [:div {:class "col-md-6"} (form-input "From" [:div {:field :datepicker :id :from-date :date-format "yyyy/mm/dd" :inline false :auto-close? true}])]
