|  |  | @ -16,13 +16,26 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |      (h (:name instance)) |  |  |  |      (h (:name instance)) | 
			
		
	
		
		
			
				
					
					|  |  |  |      [:small " with..."]] |  |  |  |      [:small " with..."]] | 
			
		
	
		
		
			
				
					
					|  |  |  |     (hform/form-to |  |  |  |     (hform/form-to | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      {:class "no-grid"} | 
			
		
	
		
		
			
				
					
					|  |  |  |      [:post (path :instance-bulk-link-create instance)] |  |  |  |      [:post (path :instance-bulk-link-create instance)] | 
			
		
	
		
		
			
				
					
					|  |  |  |      (anti-forgery-field) |  |  |  |      (anti-forgery-field) | 
			
		
	
		
		
			
				
					
					|  |  |  |        (for [{:keys [schema form]} forms] |  |  |  |      (for [{:keys [schema instances]} forms] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |          [:fieldset |  |  |  |        (list | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           [:legend "Schema " [:strong (-> schema :name h)]] |  |  |  |         [:h2 "Schema " (h (:name schema))] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           (form/render-widgets form |  |  |  |         [:label | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                nil |  |  |  |          "Link name " | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                req |  |  |  |          [:input {:name (str "name[" (:uuid schema) "]")}]] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                {:render-anti-forgery-field? false})]) |  |  |  |         [:table | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |          [:thead | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           [:tr | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |            [:th "Selection"] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |            [:th "Name"]]] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |          [:tbody | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           (for [{:keys [name uuid]} instances] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             [:tr | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |              [:td {:style "text-align: center;"} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               [:input {:type "checkbox" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                        :name (str "instances[" (:uuid schema) "]") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                        :value uuid}]] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |              [:td (h name)]])]])) | 
			
		
	
		
		
			
				
					
					|  |  |  |      (hform/submit-button "Link!"))])) |  |  |  |      (hform/submit-button "Link!"))])) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |