 
     om/IRenderState
     (render-state [_ {:keys [team1 team2 matchdate]}]
-      (let [_  (debug "players" (map (fn [p] (str "'" (:name p) "'"))
+      (let [_   (debug "players" (map (fn [p] (str "'" (:name p) "'"))
                                      (selected-players (:team1 report-match)
                                                        (:team2 report-match))))
-            __ (debug "scores" (map (fn [kw] (get-in report-match [kw :score])) [:team1 :team2]))
+            __  (debug "scores" (map (fn [kw] (get-in report-match [kw :score])) [:team1 :team2]))
             ___ (debug "matchdate" (-> report-match :matchdate d/->str))
-            render-team (partial render-team-controls app)]
+            ____ (debug "submits" submits)
+            render-team (partial render-team-controls app)
+            enabled? (valid-report? report-match)]
         (html
          [:div
           [:h1 "Report Match Result"]

  (let [matchdate (dc/to-date-time js-date)]
    (om/update! report-match path matchdate)))

(defn report-match-component [{:keys [active-players report-match] :as app} owner]
  (reify
    om/IInitState
    (init-state [_]

           [:div.form-group.col-lg-12
            [:div.form-group.col-lg-5.pull-right
             [:button.btn.btn-primary.btn-lg.btn-block
              (merge {:on-click (fn [e] (submit-report! @report-match))}
                     (when-not enabled? {:disabled "disabled"}))
              "Report Match Result " [:span.glyphicon.glyphicon-ok]]]]]])))))

(defn render [app]
  (if (:auth app)
