<%
  def rcontext = _ctx.getRequestContext() ;
	int step = uicomponent.getSelectedStep();
	String compName = uicomponent.getName() ;
%>
<div class="UIWorkspaceWizard">
	<div class="UIFormTabPane" >
	  <div class="UITabPane">
			<div class="TabPaneContent">
		    <div class="WorkingArea">		     	
				 <%
	          for(inputSet in uicomponent.getChildren()) {
	        		String className="HiddenLabel" ;
	        		if(inputSet.isRendered()) className="SelectedLabel" ;
	        		boolean renderResource = uicomponent.hasRenderResourceTabName(); 
              String tabName = inputSet.getName() ; 
              if(renderResource) {
                tabName = _ctx.appRes(compName + ".tab.info." + inputSet.name) ;
              }
	        		//boolean renderTab = uicomponent.hasWithRenderTab();
              //if(renderTab){
	        %>	        
				        <div class="$className">
				        	<span class="WizardLabel">
				        		<%=_ctx.appRes(compName+".label.step"+step)%>:
				        	</span>
				        	<span>
				        		$tabName
				        	</span>
				        	<div style="clear:left;"><span></span></div>
				        </div>
	        <% // }
	          }
	        %>
	        <%uiform.begin()%>
	        <input type="hidden" id="<%=uicomponent.RENDER_TAB%>" name="<%=uicomponent.RENDER_TAB%>" value="$uicomponent.selectedTabId">
		    	<div class="HorizontalLayout">
		        <div class="UITabContentContainer">
	            <%
	              for(formInput in uicomponent.getChildren()) { 
	                String display = "none;" ;
	                if(formInput.isRendered()) display="block;" ;
	            %>
	                <div class="UITabContent" id="UITabContent" style="display: $display;">
	                  <%uicomponent.renderUIComponent(formInput) ;%>
	                </div>
	            <%}%>
	          </div>
	          <div class="UIWizardAction">
	          	<div class="StepNavigationBar">	       
					      <div class="StepNavigationTitle">
					        <%=_ctx.appRes(uicomponent.getId() + ".label.wizardSteps")%>:
					      </div>
					      <%                
	  						      List children  = uicomponent.getChildren();
	  						      int numberSteps = uicomponent.getNumberSteps();    
	  						      String actionLink = "#";    					     	
											int i = 1;				     	  						     			       	
							        while(i <= numberSteps) {
							          int j = i;
							          if(j < 1){
							            i++;
							            continue;
							          }
							          strStep = _ctx.appRes(uicomponent.getId() + ".label.step") + String.valueOf(j) ;
							          if(i != step) {
							            actionLink = uicomponent.event("ViewStep"+String.valueOf(i));
							            print "<a href=\"$actionLink\" title=\"$strStep\">" ;
							          } else print "<a href=\"#\" class=\"SelectedStep\" title=\"$strStep\">" ;
							          print String.valueOf(j);
							          println "</a>";
							          i++;
							        }
								  	%>    	        
				    	</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>
		 	        <div style="clear:right;"><span></span></div>
	 	        </div>
	          <%uiform.end()%>
			    </div>
			  </div>
			</div>  
	  </div>  
	</div>
</div>