<?php use PHPCI\Helper\Lang; ?>
<?php if (isset($emailed)): ?>
    <p class="alert alert-success" style="margin-bottom: 0">
        <?php Lang::out('reset_emailed'); ?>
    </p>
<?php else: ?>
    <?php if (empty($error)): ?>
    <div class="panel panel-success" style="margin-bottom: 0">
        <div class="box-header">
            <?php Lang::out('reset_header'); ?>
        </div>
    <?php else: ?>
    <div class="panel panel-danger" style="margin-bottom: 0">
        <div class="box-header">
            <?php print $error; ?>
        </div>
    <?php endif; ?>

        <div class="box-body">
            <form class="form" action="<?php print PHPCI_URL; ?>session/forgot-password" method="POST">
                <div class="form-group">
                    <label for="email"><?php Lang::out('reset_email_address'); ?></label>
                    <input id="email" name="email" class="form-control" required>
                </div>

                <div class="form-group">
                    <input class="btn btn-success" type="submit" value="<?php Lang::out('reset_send_email'); ?>">
                </div>
            </form>
        </div>
    </div>


<?php endif; ?>