<!-- ident "$Id$ SMI" -->

<!-- Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     Use is subject to license terms. -->
     
<!-- Start login form area -->
<tr>
    <td nowrap="nowrap">
        <div class="logLblSvrNam">                      
            <ui:label text="#{msg.login_server_name}" labelLevel="2"/>&#160;
            <ui:staticText id="servername" text="#{login.serverName}"/>    
        </div>                   
    </td> 
</tr>

<tr>
    <td nowrap="nowrap">    
        <h:dataTable id="data" value="#{login.loginChallenges}" var="c" border="0" 
                     cellpadding="0" cellspacing="0" style="margin-top:2px"
                     first="#{login.recentStepStart}">
            <h:column>
                <ui:markup tag="div" styleClass="logLbl"> 
                    <ui:label id="challengeLog" text="#{c.challenge}" labelLevel="2"
                              rendered="#{c.number < login.currentStep}">
                        <ui:staticText text="&#160;" escape="false"/>
                        <ui:staticText text="#{c.obfuscatedInput}"/>
                    </ui:label>
    
                    <ui:label id="challengeInfo" text="#{c.challenge}" labelLevel="2"
                              rendered="#{(c.number == login.currentStep) && c.textInfo}">
                        <f:verbatim><br/></f:verbatim>
                        <ui:staticText text="&#160;" escape="false" style="margin-top:6px"/>
                    </ui:label>
                    
                    <ui:label id="challengeText" text="#{c.challenge}" labelLevel="2"
                              rendered="#{(c.number == login.currentStep) && c.promptEchoOn}">
                        <f:verbatim><br/></f:verbatim>
                        <ui:textField id="textInput" text="#{c.input}" 
                                      style="margin-top:6px"
                                      onKeyPress="javascript: if (event.keyCode == 13) {document.getElementById('f1:proceed').click();return false;}"
                                      toolTip="#{c.challenge}"/>
                    </ui:label>
                    
                    <ui:label id="challengeSecret" for="passwordInput" text="#{c.challenge}" labelLevel="2"
                              rendered="#{(c.number == login.currentStep) && c.promptEchoOff}">    
                        <f:verbatim><br/></f:verbatim>
                        <ui:passwordField id="passwordInput" password="#{c.input}" 
                                          style="margin-top:6px"
                                          onKeyPress="javascript: if (event.keyCode == 13) {document.getElementById('f1:proceed').click();return false;}"
                                          toolTip="#{c.challenge}"/>
                    </ui:label>                    
                </ui:markup>
                <ui:image icon="DOT" width="0" height="4"/>
            </h:column>
        </h:dataTable>       
    </td>
</tr>

<tr>
    <td>
        <div class="logBtn">
            <ui:image icon="DOT" width="2" height="1"/>
            <ui:button id="proceed" 
                       action="#{login.proceed}" 
                       text="#{msg.login_proceed_button}" 
                       toolTip="#{msg.login_proceed_button}"
                       primary="true"/>
            <ui:button id="startover" 
                       action="#{login.abort}"
                       immediate="true"
                       text="#{msg.login_startover_button}" 
                       toolTip="#{msg.login_startover_button}"
                       primary="false"
                       disabled="#{login.currentStep == 0}"/>                    
        </div>                  
    </td>
</tr>
<tr>
    <td>&#160;</td>
</tr>
<tr>
    <td><ui:image icon="DOT" width="1" height="33"/></td>
    <td>&#160;</td>
</tr>
<ui:hiddenField id="currentStep" value="#{login.currentStep}"/>    
<!-- End login form area -->               

