<%
/**
 * Created by The eXo Platform SARL
 * Author : Tran The Trong
 *          trong.tran@exoplatform.com
 * @version: $Id$
 * Oct 6, 2006  
 */
%>
<div class="$uicomponent.id">
	<% uiform.begin() %>
	  <div class="ConstraintOption"><%=_ctx.appRes("UIConstraintForm.label.operator")%> : <%uiform.renderField(uicomponent.getChildById("operator"))%></div>
	  <div class="ConstraintOption">
	    <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("exactlyPro"))%></div>
	    <div class="FloatLeft"><label class="Label"><%=_ctx.appRes("UIConstraintForm.label.exactlyPro-properties")%></label>:<%uiform.renderField(uicomponent.getChildById("property1"))%></div>
	    <img class="IconConstraint AddMetadataTypeIcon FloatLeft" onclick="<%=uicomponent.event("AddMetadataType", "0")%>" src="/eXoResources/skin/DefaultSkin/background/Blank.gif" alt="" title="<%=_ctx.appRes("UIConstraintForm.tooltip.AddMetadataType")%>" />
	    <div class="FloatLeft"><%=_ctx.appRes("UIConstraintForm.label.exactlyPro-ContainExactly")%> : <%uiform.renderField(uicomponent.getChildById("containExactly"))%></div>
	    <img class="IconConstraint AddMetadataTypeIcon FloatLeft" onclick="<%=uicomponent.event("CompareExactly")%>" src="/eXoResources/skin/DefaultSkin/background/Blank.gif" alt="" title="<%=_ctx.appRes("UIConstraintForm.tooltip.FindExactly")%>" />
	  </div>
	  <div class="ConstraintOption">
	    <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("containPro"))%></div>
	    <div class="FloatLeft"><label class="Label"><%=_ctx.appRes("UIConstraintForm.label.exactlyPro-properties")%></label> : <%uiform.renderField(uicomponent.getChildById("property2"))%> </div>
	    <img class="IconConstraint AddMetadataTypeIcon FloatLeft" onclick="<%=uicomponent.event("AddMetadataType", "1")%>" src="/eXoResources/skin/DefaultSkin/background/Blank.gif" alt="" title="<%=_ctx.appRes("UIConstraintForm.tooltip.AddMetadataType")%>" />
	    <div class="FloatLeft"><%=_ctx.appRes("UIConstraintForm.label.containPro-Contain")%> : <%uiform.renderField(uicomponent.getChildById("contain"))%></div>
	  </div>
	  <div class="ConstraintOption">
	    <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("notContainPro"))%></div>
	    <div class="FloatLeft"><label class="Label"><%=_ctx.appRes("UIConstraintForm.label.exactlyPro-properties")%></label> : <%uiform.renderField(uicomponent.getChildById("property3"))%> </div>
	    <img class="IconConstraint AddMetadataTypeIcon FloatLeft" onclick="<%=uicomponent.event("AddMetadataType", "2")%>" src="/eXoResources/skin/DefaultSkin/background/Blank.gif" alt="" title="<%=_ctx.appRes("UIConstraintForm.tooltip.AddMetadataType")%>" />
			<div class="FloatLeft"><%=_ctx.appRes("UIConstraintForm.label.notContainPro-notContain")%>: <%uiform.renderField(uicomponent.getChildById("notContain"))%></div>
	  </div>
	  <div class="ConstraintOption">
	    <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("datePro"))%></div>
	    <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("timeOpt"))%></div>
      <label class="Label FloatLeft"><%=_ctx.appRes("UIConstraintForm.label.ConstraintOption-From")%></label>
      <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("startTime"))%></div>
      <label class="Label FloatLeft"><%=_ctx.appRes("UIConstraintForm.label.ConstraintOption-To")%></label>
      <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("endTime"))%></div>
	  </div>
	  <div class="ConstraintOption">
	    <div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("nodetypePro"))%></div>
	    <div class="FloatLeft"><label class="Label"><%=_ctx.appRes("UIConstraintForm.label.DocumentType-label")%></label> : <%uiform.renderField(uicomponent.getChildById("docType"))%> </div>
	    <img class="IconConstraint AddNodeTypeIcon FloatLeft" onclick="<%=uicomponent.event("AddNodeType")%>" src="/eXoResources/skin/DefaultSkin/background/Blank.gif" alt="" title="<%=_ctx.appRes("UIConstraintForm.tooltip.AddNodeType")%>" />
	  </div>
	  <div class="ConstraintOption">
			<div class="FloatLeft"><%uiform.renderField(uicomponent.getChildById("categoryPro"))%></div>
	    <div class="FloatLeft"><label class="Label"><%=_ctx.appRes("UIConstraintForm.label.Category-label")%></label> : <%uiform.renderField(uicomponent.getChildById("categoryType"))%> </div>
	    <img class="IconConstraint AddCategoryIcon FloatLeft" onclick="<%=uicomponent.event("AddCategory")%>" src="/eXoResources/skin/DefaultSkin/background/Blank.gif" alt="" title="<%=_ctx.appRes("UIConstraintForm.tooltip.AddCategory")%>" />
	  </div>
 <div class="UIAction">
		<% for(action in uicomponent.getActions()) { 
		String actionLabel = _ctx.appRes(uicomponent.getName() + ".action." + action) 
		String link = uicomponent.event(action) ;
		%>
			<a onclick="$link" class="ActionButton LightBlueStyle" href="javascript:void(0);">$actionLabel</a>
		<%}%>
	</div>
	  <%/* end render action */%>
	<%uiform.end()%>
</div>