 
 
 (comment
-  
+
   (text-control profile_data state owner :annual_heating_load "Annual Heating Load")
   (text-control profile_data state owner :completeness "Completeness")
   (text-control profile_data state owner :conservation_issues "Conservation Issues")

         ;; (om/build low-energy-lights profiles)
         ;; (om/build ventilation-systems profiles)
         ;; (om/build airflow-measurements profiles)
         
         ;; renewable energy systems
         ;; (om/build photovoltaic-panels profiles)
         ;; (om/build solar-thermal-panels profiles)

               (text-control profile_data state owner :sap_version_year "SAP Version Year")
               (text-control profile_data state owner :sap_regulations_date "SAP Regulations Date")
               (text-control profile_data state owner :sap_software "Name of SAP Software")])]))]))))

(defn conservatories-row [profiles owner]
  (reify
    om/IRenderState
    (render-state [_ state]
      (html
       [:div.col-md-12
        (for [profile profiles]
          [:div {:class (profile-column-width)}
           (bs/panel
            "Conservatories"
            (if-let [conservatories (seq (:conservatories profile))]
              [:div {:class (profile-column-width)}
               (for [c conservatories]
                 (bs/panel
                  "Conservtory"
                  [(text-control c state owner :conservatory_type "Conservatory Type")
                   (text-control c state owner :area "Area")
                   (text-control c state owner :double_glazed "Double Glazed")
                   (text-control c state owner :glazed_perimeter "Glazed Perimeter")
                   (text-control c state owner :height "Height")]))]
              [:p "No conservatories."]))])]))))

(defn profile-rows [profiles owner]
  (reify
