 
 (defcomponent render-companies-index [_ _]
   (render [_]
-          (dom/div
-           (dom/h3 "Companies")
-           (om/build companies-table nil
-                     {:init-state {:companies company-data}}))))
+          (g/row nil
+                 (g/col {:md 12}
+                        (dom/h3 "Companies")
+                        (om/build companies-table nil
+                                  {:init-state {:companies company-data}})))))
 
 
 

                           (.preventDefault e))} "cancel"))))


(defcomponent company-table-line [company owner]
  (init-state [_]
              {:company company})
  (render-state [_ {:keys [company editing?]}]
                (dom/tr
                 (dom/td
                  (if editing?
                    (i/input {:type "text"
                              :ref "company-name"
                              :default-value (:name company)})
                    (:name company)))
                 (dom/td
                  (if editing?
                    (i/input {:type "text"
                              :ref "company-id"
                              :default-value (:sid company)})
                    (:sid  company)))
                 (dom/td (:industry company))
                 (dom/td (action-links owner editing?)))))


(defcomponent companies-table [_ _]
  (render-state [_ {:keys [companies]}]
                (t/table {:striped? true}
                         (dom/thead
                          (dom/tr
                           (dom/th "Name")

            [om-tools.core :refer-macros [defcomponent]]
            [om-bootstrap.table :as t]
            [om-bootstrap.button :as b]
            [om-bootstrap.grid :as g]
            [om-bootstrap.input :as i]
            [om-bootstrap.random :as r]))


(def company-data [ {:sid "Foo"
                     :name "Foo Company"
                     :industry "retail"}
                    {:sid "Bar"
                     :name "Bar Company"
                     :industry "travel"}])

(def industry-data [{:value "travel" :label "Travel"}
                    {:value "retail" :label "Retail"}])


(defn input-value [owner input]
  (-> (om/get-node owner input)
