kpmpgsmkii/kanga.world/site/templates/register.php
2021-12-29 16:46:27 -06:00

27 lines
No EOL
943 B
PHP

<?php snippet('header') ?>
<?php snippet('notification') ?>
<form method="post" action="<?= $page->url() ?>">
<fieldset>
<legend><?= $page->title()->html() ?></legend>
<section>
<label for="email"><?= $page->email()->html() ?></label>
<input type="email" id="email" name="email" value="<?= $data['email'] ?? '' ?>" autocomplete="email" autofocus required>
<?= isset($alert['email']) ? html($alert['email']) : '' ?>
</section>
<section>
<label for="password"><?= $page->password()->html() ?></label>
<input type="password" id="password" name="password" value="<?= $data['password'] ?? '' ?>" minlength="8" autocomplete="new-password" required>
<?= isset($alert['password']) ? html($alert['password']) : '' ?>
</section>
<section>
<input type="submit" name="register" value="<?= $page->button()->html() ?>">
</section>
</fieldset>
</form>
<?php snippet('footer') ?>