@using HrynCo.NotificationService.Web.Controllers.Admin.ViewModels @model PushTemplateEditViewModel @{ Layout = "~/Views/Shared/_EditorLayout.cshtml"; ViewData["Title"] = Model.PageTitle; ViewData["EditorTitle"] = Model.PageTitle; var active = Math.Clamp(Model.ActiveLanguageIndex, 0, Math.Max(0, Model.Languages.Count - 1)); } @section Breadcrumbs { }
@Html.AntiForgeryToken()
Service
@Model.ServiceName
Push variables, shared across its languages: [{"name":"UserName","required":true}]

Every configured service language has a tab. Present and Missing show saved versions. To remove a language version, clear Title and Body and set Actions to {}. Shared variables and the template remain.

@if (Model.Languages.Count == 0) {

No service languages configured. You can save the key and shared variables now, then add language codes in Edit Service.

}
Selected language preview:
Preview uses the Push variables. Content is plain text; this does not send a notification.
Ready
Sample values
Rendered title
Rendered body

                
Buttons
@section FormActions { Cancel } @section Scripts { }