             [clj-time.coerce :as time-coerce]
             [formative.core :as f]
             [formative.parse :as fp]
-            [hiccup.page :as page]))
+            [hiccup.page :as page]
+            [korma.db :as korma-db]
+            [noir.response :as response]))
 
 (def match-form
   {:fields [{:name :home_player_id :label "Player" :type :select :datatype :int :class "form-control" :id "homePlayer"


(defroutes home-routes
  (GET "/" [] (home-page))
  (POST "/" {match :params} (create-match match))
  (GET "/stats" [] (stats-page)))


             :options (fn [] (map #(vector (:id %) (:name %)) (db/get-players))) :placeholder ""}
            {:name :away_team_name :label "Team" :type :text :datatype :str :class "form-control" :id "awayTeam"}
            {:name :away_score :label "Score" :type :select :datatype :int :class "form-control" :id "awayScore"
             :options (range 10) :placeholder ""}]
   :validations [[:required [:home_player_id :home_team_name :home_score :away_player_id :away_team_name :away_score]]]})

(defn home-page []
  (layout/render
