 ;;      Filename: network_state.cljs
 ;; Creation Date: Sunday, 11 October 2015 10:39 AM AEDT
-;; Last Modified: Sunday, 11 October 2015 05:18 PM AEDT
+;; Last Modified: Sunday, 11 October 2015 05:28 PM AEDT
 ;;        Author: Tim Cross <theophilusx AT gmail.com>
 ;;   Description:
 ;;

            [arcis.ajax :as ajax]
            [arcis.state :as state]))

(defn y-or-n-toogle [val]
  (if (or (= val "Y") (= val "y"))
    "N"
    "Y"))

                           (if (or (= state "Y") (= state "y"))
                             "btn-success"
                             "btn-danger"))
               :on-click #(update-state grp sub-grp (y-or-n-toggle state))}
      (y-or-n-text state)]]))
