@model PowderCoating.Application.DTOs.Notification.NotificationTemplateDto @{ ViewData["Title"] = $"Edit Template - {Model.DisplayName}"; ViewData["PageIcon"] = "bi-envelope-gear"; var placeholders = ViewBag.Placeholders as List<(string Placeholder, string Description)> ?? new List<(string, string)>(); var isEmail = Model.IsEmail; } @section Styles { }
@if (isEmail) { Email } else { SMS } @Model.NotificationType
@Html.AntiForgeryToken() @if (isEmail) {
}
@if (isEmail) {
HTML is supported. Use {{placeholder}} tokens anywhere in the body.
} else {
Standard SMS segments are 160 characters. Messages over 160 chars are split into multiple segments. Always include Reply STOP to opt out for CTIA compliance.
}
Cancel
@Html.AntiForgeryToken()
Available Placeholders

Click any placeholder to copy it to your clipboard, then paste it into the template body.

@foreach (var (placeholder, description) in placeholders) {
@placeholder Copied!
@description
}
Tips
  • Placeholders are case-insensitive.
  • Unrecognised placeholders are left as-is.
  • @if (isEmail) {
  • Edit raw HTML directly. A plain-text version is generated automatically for email clients that require it.
  • An unsubscribe link is always appended to comply with CAN-SPAM.
  • } else {
  • Keep messages under 160 characters to avoid splitting.
  • Always include opt-out instructions (e.g. "Reply STOP") to comply with CTIA guidelines.
  • }
@section Scripts { @if (!isEmail) { } }