Files
PowderCoatingLogix/src/PowderCoating.Web/Views/Unsubscribe/EmailConfirm.cshtml
T
spouliot 4ec55e7290 Restore all zeroed views + add bulk gift certificate creation
The HTML entity sweep script had a bug where it wrote empty files for any
view that contained no target Unicode characters, zeroing out 215 view files.
All views restored from the pre-sweep commit (cefdf3e).

Bulk gift certificate feature:
- BulkCreateGiftCertificateDto with Quantity (1-500), Amount, Reason, Expiry, Notes
- GenerateBulkGiftCertificatePdfAsync on IPdfService / PdfService: one Letter page
  per cert, reusing the same purple/gold branded ComposeGiftCertificateContent helper
- GiftCertificatesController: BulkCreate GET/POST, BulkResult GET, BulkDownloadPdf POST
- Views: BulkCreate.cshtml (form with live total preview), BulkResult.cshtml (table +
  Download All PDF button that POSTs cert IDs to avoid URL length limits)
- gift-certificate-bulk.js: live preview + spinner/disable on submit
- Index.cshtml: Bulk Create button added alongside New Certificate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 20:09:22 -04:00

52 lines
1.8 KiB
Plaintext

@{
ViewData["Title"] = "Email Preferences Updated";
Layout = null; // Standalone page — no sidebar, no nav
var alreadyDone = (bool)(ViewBag.AlreadyUnsubscribed ?? false);
var name = (string?)ViewBag.CustomerName;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"]</title>
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/lib/bootstrap-icons/font/bootstrap-icons.css" />
<style>
body { background: #f8f9fa; }
.card { max-width: 540px; }
</style>
</head>
<body class="d-flex align-items-center justify-content-center min-vh-100">
<div class="card border-0 shadow-sm mx-auto p-4 text-center">
<div class="mb-3">
<i class="bi bi-envelope-x text-success" style="font-size: 3rem;"></i>
</div>
<h2 class="h4 mb-3">
@(alreadyDone ? "Already Unsubscribed" : "You've Been Unsubscribed")
</h2>
@if (!string.IsNullOrWhiteSpace(name))
{
<p class="text-muted">Hi <strong>@name</strong>,</p>
}
@if (alreadyDone)
{
<p class="text-muted">
Your email address is already opted out of notifications.
No further action is needed.
</p>
}
else
{
<p class="text-muted">
You've been successfully removed from our email notification list.
You will no longer receive job status updates or quote notifications by email.
</p>
<p class="text-muted small">
If you change your mind, contact us and we'll re-enable email notifications for you.
</p>
}
</div>
</body>
</html>