castopod/themes/cp_auth/email_2fa_show.php
Yassine Doghri dfb7888aeb feat(plugins): add aside with plugin metadata next to plugin's readme
- enhance plugin card ui
- refactor components to be more consistent
- invert toggler label for better UX
- edit view components regex
2024-06-14 15:53:33 +00:00

31 lines
798 B
PHP

<?php declare(strict_types=1);
?>
<?= helper('form') ?>
<?= $this->extend(config('Auth')->views['layout']) ?>
<?= $this->section('title') ?><?= lang('Auth.email2FATitle') ?> <?= $this->endSection() ?>
<?= $this->section('content') ?>
<form action="<?= url_to('auth-action-handle') ?>" method="POST" class="flex flex-col w-full gap-y-4">
<?= csrf_field() ?>
<x-Forms.Field
name="email"
label="<?= esc(lang('Auth.email')) ?>"
helper="<?= esc(lang('Auth.confirmEmailAddress')) ?>"
isRequired="true"
type="email"
inputmode="email"
autocomplete="email"
value="<?= $user->email ?>"
/>
<x-Button variant="primary" type="submit" class="self-end"><?= lang('Auth.send') ?></x-Button>
</form>
<?= $this->endSection() ?>