<div id="form-main">
    <div id="form-div">
        <h2 class="register"><?php echo \Idno\Core\Idno::site()->language()->_('Hello there!'); ?></h2>

        <p><?php echo \Idno\Core\Idno::site()->language()->_('Create a new account to get started.'); ?></p>

        <?php echo $this->draw('shell/simple/messages') ?>

        <form action="<?php echo \Idno\Core\Idno::site()->config()->getDisplayURL() ?>begin/register" method="post"
              class="form-horizontal">

            <p class="username">
                <label class="control-label" for="inputUsername"><?php echo \Idno\Core\Idno::site()->language()->_('Choose a username'); ?><br/></label>
                <input name="handle" type="text" class="feedback-input" placeholder="username" id="username"
                       autocapitalize="off" autocorrect="off" spellcheck="false" required/>
            </p>

            <p class="email">
                <label class="control-label" for="inputUsername"><?php echo \Idno\Core\Idno::site()->language()->_('Your email address'); ?><br/></label>
                <input name="email" type="email" class="feedback-input" id="email" placeholder="you@email.com"
                       autocapitalize="off" required/>
            </p>

            <p class="password">
                <label class="control-label" for="inputUsername"><?php echo \Idno\Core\Idno::site()->language()->_('Create a password'); ?>
                    <small><?php echo \Idno\Core\Idno::site()->language()->_('(at least 7 characters please)'); ?></small>
                    <br/></label>
                <input name="password" type="password" class="feedback-input" id="password"
                       placeholder="secret-password" required/>
            </p>

            <p class="password">
                <label class="control-label" for="inputUsername"><?php echo \Idno\Core\Idno::site()->language()->_('Your password again'); ?><br/></label>
                <input name="password2" type="password" class="feedback-input" id="password"
                       placeholder="secret-password" required/>
            </p>

            <div class="col-md-12">
                <input type="submit" value="Register" class="btn btn-primary btn-lg btn-responsive">
                <?php

                if (!empty($vars['set_name'])) {
                    ?>
                        <input type="hidden" name="set_name" value="<?php echo htmlentities($vars['set_name']) ?>">
                        <?php
                }

                ?>
            </div>

            <?php echo \Idno\Core\Idno::site()->actions()->signForm('/begin/register') ?>
        </form>

    </div>
</div>
