 (c/defn-ui-component     admin-view-list-views   [data-sources]
 
   (c/div nil
+				 (c/h2 nil "Views")
 		 (c/map-many
-		  #(c/div nil  (pr-str (get  % :fields) (get  % :db-table) (get  % :where) (get  % :params) ))
+		  #(c/div
+				{:onClick (fn[x] (js/alert (pr-str (get  @data-views-v2 %))))}
+		      (pr-str (get  % :fields) (get  % :db-table) (get  % :where) (get  % :params) ))
 		     ;(c/read-ui data-sources [:values])
 		     ;["s" "dd"]
 			(keys @data-views-v2)

	(:use
		[webapp.framework.client.system-globals  :only  [
																										 data-views-v2
																										 ]])
   )


												(c/write-ui  app [:system :ui :tab-detail :value] {})
									 )
						 } "views"))

			(c/inline "50px" (c/div {:style {:fontSize "12px"}
															 :onClick #(do
																					(c/write-ui  app [:system :ui :tab :value] "data queries")
																					(c/write-ui  app [:system :ui :tab-detail :value] {})
																					)
															 } "queries"))

		  )


