              :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 ""}]})
+             :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

            [clj-time.coerce :as time-coerce]
            [formative.core :as f]
            [formative.parse :as fp]
            [hiccup.page :as page]))

(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 "/" {params :params} (create-match params))
  (GET "/stats" [] (stats-page)))

