<?= $this->extend("layouts/clean") ?>

<?= $this->section("title") ?>Set Password<?= $this->endSection() ?>

<?= $this->section("content") ?>
    <h1>Set Password</h1>
    <?php if(session()->has("errors")): ?>
        <ul>
            <?php foreach(session("errors") as $error): ?>
                <li style="color: red;"><?= $error ?></li>
            <?php endforeach; ?>
        </ul>
    <?php endif; ?>

    <?= form_open() ?>

    <label for="password">Password</label>
    <input type="password" name="password" id="password">

    <label for="password_confirmation">Repeat Password</label>
    <input type="password" name="password_confirmation" id="password_confirmation">

    <button class="button" >Save</button>
    <a class="button" href="<?= site_url('/') ?>" default>Cancel</a>
</form>

<?= $this->endSection() ?>

