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

29 lines
1 KiB
PHP

<?php snippet('header') ?>
<?php snippet('notification') ?>
<?= $success ?? '' ?>
<form method="post" action="<?= $page->url() ?>">
<fieldset>
<legend><?= $data['email'] ?? $kirby->user()->email() ?></legend>
<section>
<label for="email"><?= $page->email()->html() ?></label>
<input type="text" id="email" name="email" value="<?= $data['email'] ?? '' ?>" placeholder="<?= $data['email'] ?? $kirby->user()->email() ?>" autocomplete="email">
<?= 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'] ?? '' ?>" placeholder="<?= $page->password()->html() ?>" autocomplete="new-password">
<?= isset($alert['password']) ? html($alert['password']) : '' ?>
</section>
<section>
<input type="submit" name="update" value="<?= $page->button()->html() ?>">
</section>
</fieldset>
</form>
<?php snippet('footer') ?>