| 
						
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -1,6 +1,7 @@
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				(ns wanijo.framework.view
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  (:require [hiccup.page :refer
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				             [html5 include-css include-js]]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            [hiccup.form :as hform]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            [wanijo.framework.routing :refer [path]]))
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				(defn btnlink
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -11,6 +12,10 @@
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    [:button {:class clss}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				     caption]]))
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				(defn delete-btn []
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  (hform/submit-button {:class "delete-btn"}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                       "☒ Delete!"))
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				(defn layout!
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  [& {:keys [content title session]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      :or {content []
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -39,7 +44,7 @@
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        (when authed?
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				          [:section.header-content
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           (btnlink (path :schema-overview)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                    "Schemas"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                    "▤ Schemas"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                    "header-content__link")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           (btnlink (path :auth-logout)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                    "Logout!"
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -47,11 +52,11 @@
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				       [:nav
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        (when authed?
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				          [:section.schemas
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           [:h2 "Created Schemas"]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           [:h2 "▤ Created Schemas"]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           [:ul
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            (for [schema (:created-schemas session)]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				              [:li (:name schema)])]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           [:h2 "Other Schemas"]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           [:h2 "▤ Other Schemas"]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				           [:ul
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            (for [schema (:other-schemas session)]
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				              [:li (:name schema)])]])]
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |