<? if ($this->form->getErrorMessages()): ?>
    <div class="messages" style="margin-bottom:20px">
        <?= implode('<br />', $this->form->getErrorMessages()) ?>
    </div>
<? endif ?>
<form name="openidAuthenticate" action="authenticate<?php echo $this->queryString ?>" method="post" class="formGrid">
    <? if ($this->identity): ?>
        <div class="yui-gf" style="padding:10px 0">
            <div class="yui first"><?= $this->translate('OpenID URL') ?>:</div>
            <div class="yui-u"><?= $this->escape($this->identity) ?></div>
        </div>
    <? else: ?>
        <?= $this->form->openIdIdentity ?>
    <? endif ?>
    <?php echo $this->form->password ?>
    <?php if ($this->useCaptcha): ?>
        <?php echo $this->form->captcha ?>
    <?php endif ?>
    <div class="yui-gf">
        <div class="yui-u first">
            <input type="submit" id="login" value="<?php echo $this->translate('Login') ?>" />
            <script type="text/javascript">
                var oButton = new YAHOO.widget.Button("login");
            </script> 
        </div>
        <div class="yui-u">&nbsp;</div>
    </div>
</form>
<script>
    document.openidAuthenticate.password.focus();
</script>
