#if (!$user.isViewer()) #if ($filter.getId()) #set ($filterId = $filter.getId()) #else #set ($filterId = 0) #end #set ($jsAddFragment = "piggydb.widget.FragmentForm.openToCreateWithFilter($filterId); return false;") #set ($jsAddFile = "piggydb.widget.FileForm.openToCreateWithFilter($filterId); return false;") #end #fragmentsView( "fragmentsByFilter" "$context/partial/fragments-by-filter.htm#if($filter.id)?id=$filter.id#end" "true" $jsAddFragment $jsAddFile)