 (ns cruncher.rename
   (:require [om.next :as om :refer-macros [defui]]
             [om.dom :as dom :include-macros true]
             [goog.dom :as gdom]
             [cruncher.utils.views :as vlib]
             [cruncher.utils.lib :as lib]))


(defui RenamingControls
       Object
       (render [this]
               (dom/div nil
                        (dom/p #js {:className "lead"} "Rename Pokemon")
                        "hm?")))
(def controls (om/factory RenamingControls))
(ns cruncher.rename
  (:require [om.next :as om :refer-macros [defui]]
            [om.dom :as dom :include-macros true]
            [goog.dom :as gdom]
            [cruncher.utils.views :as vlib]
            [cruncher.utils.lib :as lib]))

(defui SelectSchemes
  Object
  (render [this]
    (let [selected (or (om/get-state this :selected) "rename-scheme-1")]
      (dom/div nil
               (dom/div #js {:className "form-group"}
                        (dom/select #js {:className "form-control"
                                         :onChange  #(println "click")
                                         :value     selected}
                                    (dom/option #js {:value "rename-scheme-1"} "IV% AT/DF/ST")
                                    (dom/option #js {:value "rename-scheme-2"} "AT/DF/ST")
                                    (dom/option #js {:value "rename-scheme-3"} "IV%")))
               (dom/div #js {:className "form-group"})))))
(def select-schemes (om/factory SelectSchemes {}))

(defui RenamingControls
  Object
  (render [this]
    (dom/div nil
             (dom/p #js {:className "lead"} "Renaming")
             (dom/label #js {:className "control-label"} "Renames selected Pokemon. Not reversible.")
             (dom/div #js {:className "row"}
                      (dom/div #js {:className "col-md-3"}
                               (select-schemes (om/props this)))))))
(def controls (om/factory RenamingControls))
Add ui to select scheme
Add ui to select scheme

Phaetec/pogo-cruncher,Phaetec/pogo-cruncher,Phaetec/pogo-cruncher