       (display-loading))))
 
 
-(defn row [label input]
-  [:div.row
-   [:div.col-md-2 [:label label]]
-   [:div.col-md-5 input]])
-
 (def conference-form-template
   [:div
-   (row "Name" [:input {:field :text :id :name}])
-   (row "Description" [:textarea {:field :textarea :id :description}])])
+   (form-input "Name" [:input {:field :text :id :name :class "form-control" :placeholder "Name of the conference"}])
+   (form-input "Description" [:textarea {:field :textarea :rows 5 :id :description :class "form-control" :placeholder "More information about the conference"}])])
 
 (defn create-conference [form-data]
   (ajax/POST "/api/conferences/" {:params @form-data


(defn add-conference-page []
  (let [doc (atom {})]
    [:div
     [:h2 "Add conference"]
     [:div
      [forms/bind-fields conference-form-template doc]
      [:div [:button {:on-click #(create-conference doc)} "Create"]]]]))

(def add-rating-template
  [:div
   (form-input "Author" [:input {:type "text" :placeholder "author" :class "form-control" :field :text :id :author}])
   (form-input "Stars" [:input {:type "number" :placeholder "stars" :class "form-control" :min 1 :max 5 :field :range :id :stars}])
   (form-input "Comment" [:textarea {:placeholder "comment" :class "form-control" :rows "5" :field :textarea :id :comment}])])

(defn create-rating [form-data]
  (let [conference @displayed-conference]
