               (comp/card-header
                 {:className "Swarmpit-form-card-header"
                  :key       "nech"
-                 :title     "Edit Node"})
+                 :title     (str "Editing " nodeName)})
               (comp/card-content
                 {:key "necc"}
                 (comp/grid

     :disabled        true
     :InputLabelProps {:shrink true}}))

(defn- form-role [value]
  (comp/text-field
    {:fullWidth       true
     :key             "role"
     :label           "Role"
     :select          true
     :value           value
     :variant         "outlined"
     :margin          "normal"
     :style           {:maxWidth "350px"}
     :InputLabelProps {:shrink true}
     :onChange        #(state/update-value [:role] (-> % .-target .-value) state/form-value-cursor)}
    (comp/menu-item
      {:key   "worker"
       :value "worker"} "worker")
    (comp/menu-item
      {:key   "manager"
       :value "manager"} "manager")))

(defn- form-availability [value]
  (comp/text-field
    {:fullWidth       true
     :key             "availability"
     :label           "Availability"
     :select          true
     :value           value
     :variant         "outlined"
     :margin          "normal"
     :style           {:maxWidth "350px"}
     :InputLabelProps {:shrink true}
     :onChange        #(state/update-value [:availability] (-> % .-target .-value) state/form-value-cursor)}
    (comp/menu-item
      {:key   "active"
       :value "active"} "active")
    (comp/menu-item
      {:key   "pause"
       :value "pause"} "pause")
    (comp/menu-item
      {:key   "drain"
       :value "drain"} "drain")))

(defn- form-label-name [value index]
  (comp/text-field

                   :spacing   40}
                  (comp/grid
                    {:item true
                     :key  "necccigar"
                     :xs   12
                     :sm   6}
                    (form-role role))
                  (comp/grid
                    {:item true
                     :key  "necccigaa"
                     :xs   12
                     :sm   6}
                    (form-availability availability))
                  (comp/grid
                    {:item true
