<?php
/**
 * This file is part of the {@link http://ontowiki.net OntoWiki} project.
 *
 * @copyright Copyright (c) 2012, {@link http://aksw.org AKSW}
 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
 */

/**
 * OntoWiki login module template
 */

?>
<form method="post" action="<?php echo $this->actionUrl ?>" class="simple-input input-justify-left" name="locallogin">
    <input type="hidden" name="logintype" value="locallogin" />
    <fieldset>
        <input type="hidden" name="redirect-uri" value="<?php echo $this->redirectUri ?>" />
        <div>
            <label for="username"><?php echo $this->_('Username') ?></label>
            <input class="text focusNextOnEnter" type="text" id="username" name="username" value="" />
            <br class="clearall" />
        </div>
        <div>
            <label for="password"><?php echo $this->_('Password') ?></label>
            <input class="password submitOnEnter" type="password" id="password" name="password" />
            <br class="clearall" />
        </div>
        <div>
            <label class="checkboxradio">
                <input class="checkbox" type="checkbox" id="login-save" name="login-save" />
                <?php echo $this->_('Remember me') ?>
            </label>
            <br class="clearall" />
        </div>
        <div class="actionbuttons">
                <a id="locallogin" class="minibutton submit"><?php echo $this->_('Login') ?></a>
        <?php if ($this->showRegisterButton) : ?>
                    <a class="minibutton" href="<?php echo $this->registerActionUrl; ?>"><?php echo $this->_('Register') ?></a>
        <?php endif; ?>
        </div>
    </fieldset>
</form>
