<% String fieldName; %>
<div class="UIForm $uicomponent.id">
  <%uiform.begin()%>
  <div class="HorizontalLayout">
    <div class="FormContainer">
      <table class="UIFormGrid">
	      <% 
	        for(field in uiform.getChildren()) { 
	          if(field.isRendered()) {
	      %>
              <tr>
	              <%fieldName = uicomponent.getLabel(field.getName());%>
	              <%//TODO: Tung.Pham modified
	              	//if(!fieldName.equals(uicomponent.getId())) {
	              	if(fieldName != null && fieldName.length() > 0 && !fieldName.equals(uicomponent.getId())) {
	              %>                        
  	              <td class="FieldLabel">
                    <%/*if(fieldName != null && fieldName.length() > 0) {*/%> 
                      <%=uicomponent.getLabel(field.getName()) %>
                    <%/*}*/%>
                  </td>
  	              <td class="FieldComponent"><% uiform.renderField(field) %></td>
	              <%} else {%>
	                <td class="FieldComponent" colspan="2"><% uiform.renderField(field) %></td>
	              <%}%>
	            </tr>
	      <%
	          }
	        }
	      %>	 
	      			<tr>
	      				<td></td>
	      				<td><div class="<%= uicomponent.getPictureDescribe() %>"><span></span></div></td>
	      			</tr>     
      </table>
      <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>
    </div>
  </div>
  <%uiform.end()%>
</div>
