57 lines
1.9 KiB
PHP
57 lines
1.9 KiB
PHP
<?php
|
|
// File: verify_failed.php
|
|
// Version: 1.2
|
|
// Purpose: Displays failure message and allows resend of verification links.
|
|
|
|
use WizdomNetworks\WizeWeb\Core\View;
|
|
|
|
ob_start();
|
|
?>
|
|
|
|
<section class="verify-section section pt-5" style="padding-top: 7rem;">
|
|
<div class="container text-center">
|
|
<div class="icon mb-4" style="padding-top: 3rem;">
|
|
<i class="bi bi-x-circle text-danger" style="font-size: 4rem;"></i>
|
|
</div>
|
|
<h2 class="mb-3">Verification Failed</h2>
|
|
<p class="lead">
|
|
<?= htmlspecialchars($reason ?? 'Something went wrong. Please try again later.') ?>
|
|
</p>
|
|
|
|
<div class="my-4">
|
|
<img src="/assets/img/form-email-related/email-expired.webp" alt="Error" class="img-fluid rounded" style="max-width: 400px;">
|
|
</div>
|
|
|
|
<?php if (empty($redirect)): ?>
|
|
<!-- Resend Verification Form -->
|
|
<div class="mt-4">
|
|
<h5>Resend Verification</h5>
|
|
<p class="mb-2">If you entered the correct email and didn't receive your verification link, you can request a new one below.</p>
|
|
<form action="/resend-verification" method="post" class="row justify-content-center" style="max-width: 500px; margin: 0 auto;">
|
|
<div class="col-12 mb-2">
|
|
<input type="email" name="email" class="form-control" placeholder="Enter your email" required>
|
|
</div>
|
|
<div class="col-12 mb-2">
|
|
<input type="hidden" name="type" value="<?= htmlspecialchars($type ?? '') ?>">
|
|
</div>
|
|
<div class="col-12">
|
|
<button type="submit" class="btn btn-primary">Resend Link</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<?php else: ?>
|
|
<div class="mt-4 text-center">
|
|
<a href="/" class="btn btn-primary">Start a New Submission</a>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="mt-4 text-center">
|
|
<a href="/" class="btn btn-outline-primary">Return to Home</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<?php
|
|
$html = ob_get_clean();
|
|
View::render('layouts/arsha', ['content' => $html, 'hideNavbar' => true]);
|
|
?>
|