          [:label {:for "checkbox1"} "Keep Me Signed in"]]
         [:input.btn-primary
          {:name "login"
+          :class (when-not submit-enabled? "btn-disabled")
+          :disabled (not submit-enabled?)
           :value "Continue"
           :type "submit"
           :on-click on-submit}]

       [:div.login-content
        [:input.input-text
         {:name "email"
          :placeholder "Email or Username"
          :type "text"}]
        [:input.input-text
         {:name "password"
          :placeholder "Password"
          :type "password"}]
        #_[:div.input-checkbox.check-primary

(ns uxbox.ui.auth
  (:require [sablono.core :as html :refer-macros [html]]
            [lentes.core :as l]
            [cuerdas.core :as str]
            [rum.core :as rum]
            [uxbox.router :as r]
            [uxbox.state :as s]
            [uxbox.rstore :as rs]
            [uxbox.data.auth :as da]
            [uxbox.util.dom :as dom]
            [uxbox.ui.icons :as i]
            [uxbox.ui.messages :as uum]
            [uxbox.ui.navigation :as nav]
