castopod/themes/cp_auth/email_activate_show.php

32 lines
828 B
PHP

<?php declare(strict_types=1);
?>
<?= helper('form') ?>
<?= $this->extend(config('Auth')->views['layout']) ?>
<?= $this->section('title') ?><?= lang('Auth.emailActivateTitle') ?><?= $this->endSection() ?>
<?= $this->section('content') ?>
<p><?= lang('Auth.emailActivateBody') ?></p>
<form action="<?= site_url('auth/a/verify') ?>" method="POST" class="flex flex-col w-full gap-y-4">
<?= csrf_field() ?>
<!-- Code -->
<Forms.Field
name="token"
label="<?= esc(lang('Auth.token')) ?>"
required="true"
inputmode="numeric"
pattern="[0-9]*"
autocomplete="one-time-code"
autofocus="autofocus"
placeholder="000000"
/>
<Button variant="primary" type="submit" class="self-end"><?= lang('Auth.send') ?></Button>
</form>
<?= $this->endSection() ?>