<% 
import org.exoplatform.wcm.webui.search.UISearchPageLayout;
import org.exoplatform.wcm.webui.search.UISearchForm;
import org.exoplatform.wcm.webui.search.UISearchResult;
import org.exoplatform.wcm.webui.Utils;
%>
<div id="$uicomponent.id">
	<%
		def rcontext = _ctx.getRequestContext() ;
		String portletId = Utils.getRealPortletId(rcontext);
		def quickEditingBlockId = portletId + "-QuickEditingBlock";
		def jsManager = rcontext.getJavascriptManager();
//		jsManager.importJavascript('eXo.wcm.frontoffice.private.QuickEdit', '/eXoWCMResources/javascript/') ;
    jsManager.require("SHARED/quick-edit", "edit").
		addScripts('edit.QuickEdit.insertQuickeditingBlock("' + portletId + '","' + quickEditingBlockId + '");');
		if(Utils.isShowQuickEdit()) {		
	%>
		<div id="<%=quickEditingBlockId%>" class="quickEdit">
			<a href="<%=uicomponent.event("QuickEdit")%>" rel="tooltip" data-placement="bottom" title="<%= _ctx.appRes("UISearchPageLayoutDefault.label.quickEditTitle");%>"><i class="uiIconEdit uiIconLightGray"></i></a>
		</div>
	<% } %>		
	<% uicomponent.renderChild(UISearchForm.class) %>	
	<% uicomponent.renderChild(UISearchResult.class) %>	
</div>